Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ExportContext

import type { ExportContext } from "https://googleapis.deno.dev/v1/sqladmin:v1.ts";

Database instance export context.

interface ExportContext {
bakExportOptions?: {
bakType?:
| "BAK_TYPE_UNSPECIFIED"
| "FULL"
| "DIFF"
| "TLOG";
copyOnly?: boolean;
differentialBase?: boolean;
stripeCount?: number;
striped?: boolean;
}
;
csvExportOptions?: {
escapeCharacter?: string;
fieldsTerminatedBy?: string;
linesTerminatedBy?: string;
quoteCharacter?: string;
selectQuery?: string;
}
;
databases?: string[];
fileType?:
| "SQL_FILE_TYPE_UNSPECIFIED"
| "SQL"
| "CSV"
| "BAK";
kind?: string;
offload?: boolean;
sqlExportOptions?: {
mysqlExportOptions?: {
masterData?: number;
}
;
parallel?: boolean;
schemaOnly?: boolean;
tables?: string[];
threads?: number;
}
;
uri?: string;
}

§Properties

§
bakExportOptions?: {
bakType?:
| "BAK_TYPE_UNSPECIFIED"
| "FULL"
| "DIFF"
| "TLOG";
copyOnly?: boolean;
differentialBase?: boolean;
stripeCount?: number;
striped?: boolean;
}
[src]

Options for exporting BAK files (SQL Server-only)

§
csvExportOptions?: {
escapeCharacter?: string;
fieldsTerminatedBy?: string;
linesTerminatedBy?: string;
quoteCharacter?: string;
selectQuery?: string;
}
[src]

Options for exporting data as CSV. MySQL and PostgreSQL instances only.

§
databases?: string[]
[src]

Databases to be exported. MySQL instances: If fileType is SQL and no database is specified, all databases are exported, except for the mysql system database. If fileType is CSV, you can specify one database, either by using this property or by using the csvExportOptions.selectQuery property, which takes precedence over this property. PostgreSQL instances: You must specify one database to be exported. If fileType is CSV, this database must match the one specified in the csvExportOptions.selectQuery property. SQL Server instances: You must specify one database to be exported, and the fileType must be BAK.

§
fileType?: "SQL_FILE_TYPE_UNSPECIFIED" | "SQL" | "CSV" | "BAK"
[src]

The file type for the specified uri.

§
kind?: string
[src]

This is always sql#exportContext.

§
offload?: boolean
[src]

Option for export offload.

§
sqlExportOptions?: {
mysqlExportOptions?: {
masterData?: number;
}
;
parallel?: boolean;
schemaOnly?: boolean;
tables?: string[];
threads?: number;
}
[src]

Options for exporting data as SQL statements.

§
uri?: string
[src]

The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form gs://bucketName/fileName. If the file already exists, the request succeeds, but the operation fails. If fileType is SQL and the filename ends with .gz, the contents are compressed.