gdcloud database import sql

NAME

gdcloud database import sql - Import data into a DBCluster custom resource from an SQL dump file in object storage.

SYNOPSIS

gdcloud database import sql CLUSTER_NAME URI [flags]

EXAMPLES

To import data from an SQL dump file "gs://mybucket/myfile.dmp" in the PostgreSQL DBCluster "postgres-db", run:

  gdcloud database import sql postgres-db gs://mybucket/myfile.dmp

To import data from an SQL dump file "s3://mybucket/myfile.dmp" in the Oracle DBCluster "oracle-db" in the project "db", run:

  gdcloud database import sql oracle-db s3://mybucket/myfile.dmp --project=db

OPTIONAL FLAGS

      --database string   Database name for import (PostgreSQL Only).
  -h, --help              help for sql