Database Destinations

A Database Destination lets an Automation append rows to an existing table. Each destination references a credential in the Secret Store.

List Database Destinations

Command

files-cli database-destinations list

Output

Outputs a list of DatabaseDestination objects according to the output format.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Additional Arguments

Example Request

files-cli database-destinations list

Show Database Destination

Command

files-cli database-destinations find

Output

Outputs a DatabaseDestination object according to the output format.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Flags

FlagDescription
--id=
int64
Required
Database Destination ID.

Example Request

files-cli database-destinations find \
  --id=1

Create Database Destination

Command

files-cli database-destinations create

Output

Outputs a DatabaseDestination object according to the output format.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Flags

FlagDefaultDescription
--name=
string
Required
Name of the destination.
--provider=
string
Required
Database provider.
Possible values: snowflake, bigquery, supabase, postgresql, mysql
--config=
object
Required
Provider settings for the destination. Use the schema matching provider. The connection address and table are fixed after creation.
--secret-id=
int64
Required
ID of a Secret in the same Workspace. Use a Token Secret for Snowflake, a service account Key/Value Secret for BigQuery, or a Username/Password Secret for a database login.
--workspace-id=
int64
0Workspace ID. 0 means the default workspace.

Example Request

files-cli database-destinations create \
  --name="Orders" \
  --provider="snowflake" \
  --secret-id=1

Update Database Destination

Command

files-cli database-destinations update

Output

Outputs a DatabaseDestination object according to the output format.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Flags

FlagDescription
--id=
int64
Required
Database Destination ID.
--name=
string
Name of the destination.
--secret-id=
int64
ID of a Secret in the same Workspace. Use a Token Secret for Snowflake, a service account Key/Value Secret for BigQuery, or a Username/Password Secret for a database login.
--config=
object
Provider settings for the destination. Use the schema matching provider. The connection address and table are fixed after creation.

Example Request

files-cli database-destinations update \
  --id=1 \
  --name="Orders"

Delete Database Destination

Command

files-cli database-destinations delete

Output

No output is returned.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Flags

FlagDescription
--id=
int64
Required
Database Destination ID.

Example Request

files-cli database-destinations delete \
  --id=1

The DatabaseDestination Object

Some of the commands above return a DatabaseDestination object. The attributes of this object are listed below.

AttributeDescription
id
int64
Database Destination ID.
workspace_id
int64
Workspace ID. 0 means the default workspace.
name
string
Name of the destination.
provider
string
Database provider.
Possible values: snowflake, bigquery, supabase, postgresql, mysql
config
object
Provider settings for the destination. Use the schema matching provider. The connection address and table are fixed after creation.
secret_id
int64
ID of a Secret in the same Workspace. Use a Token Secret for Snowflake, a service account Key/Value Secret for BigQuery, or a Username/Password Secret for a database login.
created_at
date-time
When the destination was created.
updated_at
date-time
When the destination was last updated.

config

Value typeDescription
object