Library for working with StaticSQL entity metadata files.
Project description
StaticSQL
A library for working with StaticSQL entity metadata files.
The library supports extracting metadata from CREATE TABLE statements and database connections and reading and writing them to and from json files:
from_connection(connection)
: read all entity definitions from a database source.from_sql(create_table (str))
: parse a CREATE TABLE statement and return the entity metadata.from_file(path)
: read entity definition from a json file.to_file([path], [name_pattern="{schema}.{name}.json"] [, folder="."])
: dump an entity definition to a json file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
staticsql-0.9.1.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file staticsql-0.9.1.tar.gz
.
File metadata
- Download URL: staticsql-0.9.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f032ed0f76177291a8f647b1dae5f3c6640211c65395705175074fdfee713e6f |
|
MD5 | 17d33b73ae56908b10a1709f293ff39a |
|
BLAKE2b-256 | 6e2079ebeda2ec52b613fa7886cc10bcf468e6c1dd5e5299d46b34d96bbc918c |
File details
Details for the file staticsql-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: staticsql-0.9.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 702d6a6bc5b3235287b8e6f99a90b9bff678ad46d49dd3fea4d4007c7be04f7e |
|
MD5 | 2afb1e1cda37a053bb91162a474f88a4 |
|
BLAKE2b-256 | 725ec2d9bfcdaf1bcc2252c6c4e4fde08a00c3d4e5a51d7a79f25222bd3b59a5 |