-- Fetch all the Files belonging to the Google Drive
-- account of a particular user.
SELECT *
FROM fiber.google_drive_file
WHERE account_id = '{user.google_drive_id}'
-- Fetch all the Files belonging to the Google Drive
-- account of a particular user.
SELECT *
FROM fiber.google_drive_file
WHERE account_id = '{user.google_drive_id}'
Code
CREATE TABLE fiber.google_drive_file (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
contents TEXT
)
CREATE TABLE fiber.google_drive_file (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
contents TEXT
)
Model definition