mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-26 02:09:49 +08:00
Decrease POSIX required level to 1
One can now compile with CFLAGS="-std=c99 -D_POSIX_C_SOURCE=1 -pedantic" Trade getopt.h function for glib equivalents: This mean all utilities now have long option names. Adjust manuals and bash_completion accordingly. Added missing manual and bash_completion for mdb-import.
This commit is contained in:
@@ -2,7 +2,8 @@ NAME
|
||||
mdb-schema - Generate schema creation DDL
|
||||
|
||||
SYNOPSIS
|
||||
mdb-schema [options] database [backend]
|
||||
mdb-schema [options] [-T tablename] [-N prefix] database [backend]
|
||||
mdb-schema -h|--help
|
||||
|
||||
DESCRIPTION
|
||||
mdb-schema is a utility program distributed with MDB Tools.
|
||||
@@ -10,20 +11,20 @@ DESCRIPTION
|
||||
It produces DDL (data definition language) output for the given database. This can be passed to another database to create a replica of the original access table format.
|
||||
|
||||
OPTIONS
|
||||
-T <table>, --table <table> Single table option. Create schema for this table only. Default is to export all tables.
|
||||
-N namespace Prefix identifiers with namespace.
|
||||
--drop-table Issue DROP TABLE statement.
|
||||
--no-drop-table Don't issue DROP TABLE statement. This is the default.
|
||||
--not-null Issue NOT NULL constraints. This is the default.
|
||||
--no-not-null Don't issue NOT NULL constraints.
|
||||
--default-values Issue DEFAULT values.
|
||||
--no-default-values Don't issue DEFAULT values. This is the default.
|
||||
--not-empty Issue CHECK <> '' constraints.
|
||||
--no-not-empty Don't issue CHECK <> '' constraints. This is the default.
|
||||
--indexes Export INDEXes. This is the default.
|
||||
--no-indexes Don't export INDEXes.
|
||||
--relations Export foreign keys constraints. This is the default.
|
||||
--no-relations Don't export foreign keys constraints.
|
||||
-T, --table tablename Single table option. Create schema for this table only. Default is to export all tables.
|
||||
-N, --namespace prefix Prefix identifiers with namespace.
|
||||
--drop-table Issue DROP TABLE statement.
|
||||
--no-drop-table Don't issue DROP TABLE statement. This is the default.
|
||||
--not-null Issue NOT NULL constraints. This is the default.
|
||||
--no-not-null Don't issue NOT NULL constraints.
|
||||
--default-values Issue DEFAULT values.
|
||||
--no-default-values Don't issue DEFAULT values. This is the default.
|
||||
--not-empty Issue CHECK <> '' constraints.
|
||||
--no-not-empty Don't issue CHECK <> '' constraints. This is the default.
|
||||
--indexes Export INDEXes. This is the default.
|
||||
--no-indexes Don't export INDEXes.
|
||||
--relations Export foreign keys constraints. This is the default.
|
||||
--no-relations Don't export foreign keys constraints.
|
||||
|
||||
backend Specifies target DDL dialect. Supported values are access, sybase, oracle, postgres, mysql and sqlite. If not specified the generated DDL will be in access format.
|
||||
|
||||
@@ -48,7 +49,7 @@ HISTORY
|
||||
|
||||
SEE ALSO
|
||||
gmdb2(1) mdb-export(1) mdb-hexdump(1) mdb-prop(1) mdb-sql(1) mdb-ver(1)
|
||||
mdb-array(1) mdb-header(1) mdb-parsecsv(1) mdb-tables(1)
|
||||
mdb-array(1) mdb-header(1) mdb-parsecsv(1) mdb-tables(1) mdb-import(1)
|
||||
|
||||
AUTHORS
|
||||
The mdb-schema utility was written by Brian Bruns and others.
|
||||
|
||||
Reference in New Issue
Block a user