-
Notifications
You must be signed in to change notification settings - Fork 3
meta schema ddl
dbeaver-devops edited this page Jun 2, 2026
·
1 revision
meta schema ddl - get the DDL statement for a schema in dbvr.
dbvr meta schema ddl [-hV]
[-db=<databaseName>]
[--full]
[-p=<dbPassword>]
[--project=<projectIdOrName>]
-sn=<schemaName>
[-u=<dbUser>]
[-auth=<authParams>]...
[-ext=<providerParams>]...
[-prop=<connectionParams>]...
[[-net=<handlerParams>]...
[-net-save-pwd=<savePassword>]]
(-ds=<existDataSourceIdOrName> |
-con=<connectionSpec> |
[--driver=<driver>
[[--auth-model=<authModel>]
[--folder=<folder>]
[--name=<dataSourceName>]
[--save-password=<savePassword>]
[--url=<url> |
[[--host=<host>]
[--database=<dbName>]
[--server=<server>]
[--port=<port>]]]]])
Tip: You can also use global options with this command.
Get the DDL statement for a schema.
Use connection settings to specify which database this command runs against.
Connect in one of these ways:
- use an existing datasource with
-dsor--datasource - provide a full connection specification with
-con,-ds-spec,-connect, or--datasource-specification - define a connection inline with
--driverand connection parameters
Include credentials, network handlers, and driver-specific properties if required.
For details on all connection settings, see Connection options.
-db, --database-name=<databaseName>
Database (catalog) that contains the schema.
-sn, --schema-name=<schemaName>
Schema to retrieve the DDL for.
--full
Include extended properties in the DDL output.
--project=<projectIdOrName>
Use a datasource from the specified project.
Tip: Run
project listto see available projects.
dbvr meta schema ddl -ds=pg-local -db=testdb -sn=public
Sample output:
-- DROP SCHEMA public;
CREATE SCHEMA public AUTHORIZATION admin;- Getting started
- Reference
- Commands
- Connection options
- Databases support
- Administration
- About dbvr