Google Drive Connector
Documentation
Version: 10
Documentation

Table Folders


Parameters

Parameter Label Required Options Description Help
There are no parameters

Supported Operations

Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.
Method Supported Reference EndPoint
SELECT list_folders
INSERT create_folder
UPDATE
UPSERT
DELETE delete_item
LOOKUP get_file_info

Examples

SSIS

Use Google Drive Connector in API Source component to read data or in API Destination component to read/write data:

Read from Folders table using API Source

Google Drive
Folders
SSIS API Source - Read from table or endpoint

Read/write to Folders table using API Destination

Google Drive
Folders
Select
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Delete a folder

Deletes a folder

DELETE FROM Folders
  WITH (Id='1yDO11prsLH9DUrBTCadV6GGMJrITjF9I')
  --You can get folder Id by selecting from 'list_folders' endpoint

Create a folder

Creates a folder

INSERT INTO Folders
  WITH (Name='My folder name'
      ,ParentFolderId='root')
  --You can get ParentFolderId by selecting from 'list_folders' endpoint or just use 'root'

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Delete a folder

Deletes a folder

DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Folders
  WITH (Id=''1yDO11prsLH9DUrBTCadV6GGMJrITjF9I'')
  --You can get folder Id by selecting from ''list_folders'' endpoint';

EXEC (@MyQuery) AT [LINKED_SERVER_TO_GOOGLE_DRIVE_IN_DATA_GATEWAY];

Create a folder

Creates a folder

DECLARE @MyQuery NVARCHAR(MAX) = 'INSERT INTO Folders
  WITH (Name=''My folder name''
      ,ParentFolderId=''root'')
  --You can get ParentFolderId by selecting from ''list_folders'' endpoint or just use ''root''';

EXEC (@MyQuery) AT [LINKED_SERVER_TO_GOOGLE_DRIVE_IN_DATA_GATEWAY];