mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 02:25:19 +00:00
gcloud: Thu Jul 4 09:30:26 UTC 2024
This commit is contained in:
parent
9cd336cae4
commit
2614f6b65e
202 changed files with 4779 additions and 318 deletions
|
|
@ -3,9 +3,9 @@ NAME
|
|||
SQL file
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha sql export sql INSTANCE URI [--async]
|
||||
gcloud alpha sql export sql INSTANCE URI [--async] [--clean]
|
||||
[--database=DATABASE,[DATABASE,...], -d DATABASE,[DATABASE,...]]
|
||||
[--offload] [--parallel]
|
||||
[--if-exists] [--offload] [--parallel]
|
||||
[--table=TABLE,[TABLE,...], -t TABLE,[TABLE,...]] [--threads=THREADS]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
|
|
@ -33,11 +33,21 @@ FLAGS
|
|||
Return immediately, without waiting for the operation in progress to
|
||||
complete.
|
||||
|
||||
--clean
|
||||
Include SQL statements (DROP <object>) required to drop database
|
||||
objects prior to import; corresponds to the clean flag for pg_dump.
|
||||
Only applies to PostgreSQL non-parallel exports.
|
||||
|
||||
--database=DATABASE,[DATABASE,...], -d DATABASE,[DATABASE,...]
|
||||
Database(s) from which the export is made. Information on requirements
|
||||
can be found here:
|
||||
https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/export#exportContext.databases
|
||||
|
||||
--if-exists
|
||||
Include an SQL statement (IF EXISTS) with each drop statement produced
|
||||
by the clean flag; corresponds to the if-exists flag for pg_dump. Only
|
||||
applies to PostgreSQL non-parallel exports.
|
||||
|
||||
--offload
|
||||
Offload an export to a temporary instance. Doing so reduces strain on
|
||||
source instances and allows other operations to be performed while the
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ NAME
|
|||
SQL dump file
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha sql import sql INSTANCE URI [--async]
|
||||
[--database=DATABASE, -d DATABASE] [--parallel] [--threads=THREADS]
|
||||
[--user=USER] [GCLOUD_WIDE_FLAG ...]
|
||||
gcloud alpha sql import sql INSTANCE URI [--async] [--clean]
|
||||
[--database=DATABASE, -d DATABASE] [--if-exists] [--parallel]
|
||||
[--threads=THREADS] [--user=USER] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) gcloud alpha sql import sql imports data into a Cloud SQL instance
|
||||
|
|
@ -40,12 +40,22 @@ FLAGS
|
|||
Return immediately, without waiting for the operation in progress to
|
||||
complete.
|
||||
|
||||
--clean
|
||||
Option to clean (DROP) database objects before recreating them.
|
||||
corresponds to the clean flag for pg_restore. Only applies if
|
||||
--parallel is set. PostgreSQL only.
|
||||
|
||||
--database=DATABASE, -d DATABASE
|
||||
Database to which the import is made. The database needs to be created
|
||||
before importing. If not set, it is assumed that the database is
|
||||
specified in the file to be imported. If your SQL dump file includes a
|
||||
database statement, it will override the database set in this flag.
|
||||
|
||||
--if-exists
|
||||
Include an SQL statement (IF EXISTS) with each DROP statement produced
|
||||
by --clean; corresponds to the if-exists flag for pg_restore. Only
|
||||
applies if --parallel is set. PostgreSQL only.
|
||||
|
||||
--parallel
|
||||
Perform a parallel import. This flag is only applicable to MySQL and
|
||||
Postgres.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue