https://github.com/mikeshultz/xsd2pgsql
Create a DB structure from an XML Schema.
https://github.com/mikeshultz/xsd2pgsql
Last synced: over 1 year ago
JSON representation
Create a DB structure from an XML Schema.
- Host: GitHub
- URL: https://github.com/mikeshultz/xsd2pgsql
- Owner: mikeshultz
- Archived: true
- Created: 2012-08-20T03:51:02.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T08:37:36.000Z (almost 7 years ago)
- Last Synced: 2025-02-19T21:24:40.808Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 45
- Watchers: 5
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
xsd2pgsql
=========
Create a DB structure from an XML Schema.
Usage
=====
Ouput of ``--help``::
usage: xsd2pgsql.py [-h] [-f] [-a] [-d [NAME]] [-u [USERNAME]] [-p [PASSWORD]]
[-n [HOSTNAME]] [-P [PORT]]
FILE [FILE ...]
Create a database based on an XSD schema. If no database name is specified,
SQL is output to stdout.
positional arguments:
FILE XSD file to base the Postgres Schema on
optional arguments:
-h, --help show this help message and exit
-f, --fail Fail on finding a bad XS type
-a, --as-is Don't normalize element names
-d [NAME], --database [NAME]
DB Name
-u [USERNAME], --user [USERNAME]
DB Username
-p [PASSWORD], --password [PASSWORD]
DB Password
-n [HOSTNAME], --host [HOSTNAME]
DB Host
-P [PORT], --port [PORT]
DB Port (Default: 5432)