ImportContext
import type { ImportContext } from "https://googleapis.deno.dev/v1/sqladmin:v1.ts";
Database instance import context.
interface ImportContext {
bakImportOptions?: {
bakType?:
| "BAK_TYPE_UNSPECIFIED"
| "FULL"
| "DIFF"
| "TLOG";
encryptionOptions?: {
certPath?: string;
pvkPassword?: string;
pvkPath?: string;
}; noRecovery?: boolean;
recoveryOnly?: boolean;
stopAt?: Date;
stopAtMark?: string;
striped?: boolean;
};csvImportOptions?: {
columns?: string[];
escapeCharacter?: string;
fieldsTerminatedBy?: string;
linesTerminatedBy?: string;
quoteCharacter?: string;
table?: string;
};database?: string;
fileType?:
| "SQL_FILE_TYPE_UNSPECIFIED"
| "SQL"
| "CSV"
| "BAK";
importUser?: string;
kind?: string;
sqlImportOptions?: {
parallel?: boolean;
threads?: number;
};uri?: string;
}§Properties
§
bakImportOptions?: {
[src]bakType?:
| "BAK_TYPE_UNSPECIFIED"
| "FULL"
| "DIFF"
| "TLOG";
encryptionOptions?: {
certPath?: string;
pvkPassword?: string;
pvkPath?: string;
}; noRecovery?: boolean;
recoveryOnly?: boolean;
stopAt?: Date;
stopAtMark?: string;
striped?: boolean;
}Import parameters specific to SQL Server .BAK files
§
csvImportOptions?: {
[src]columns?: string[];
escapeCharacter?: string;
fieldsTerminatedBy?: string;
linesTerminatedBy?: string;
quoteCharacter?: string;
table?: string;
}Options for importing data as CSV.
§
database?: string
[src]The target database for the import. If fileType
is SQL
, this field is
required only if the import file does not specify a database, and is
overridden by any database specification in the import file. If fileType
is CSV
, one database must be specified.
§
fileType?: "SQL_FILE_TYPE_UNSPECIFIED" | "SQL" | "CSV" | "BAK"
[src]The file type for the specified uri.`SQL: The file contains SQL statements. \
CSV`: The file contains CSV data.