YamlBase: simple yaml config based VCS for database
Project description
YamlBase
This utility allows you to manage tables in a database using YAML files, which makes it faster to create and delete tables in multiple databases simultaneously
The following databases are currently supported:
Installation
pip install YamlBase
Config examples
SQLite config example
Click to expand!
base_example.yaml
db_type: "SQLite" # - type of database
ip: "H:/YBase/" # - path to file with database
db_name: "test_db" # - database file name
username: ""
password: ""
schemas: # - list of schemas in database (main - default in SQLite)
main:
table_1: # - table description example
name: "table1" # - must be same as block name
descriprion: "table for test" # - some custom descriprions
permissions: [] # - unused in SQLite
columns: # - list of columns
column1: # - column example
name: "column1" # - must be same as block name
type: "text" # - type of columns in SQLite
is_pk: 1 # - is column a primary key
is_sk: 0 # - is column is secondary key (if 1 than defina sk_link)
sk_link: 0 # - sk link for table (table.column)
actions_example.yaml
# table : action
# table must be in database if remove or in base_config if insert
# table1 : insert - insert action
# table2 : remove - remove action
Usage Example
To use this utility, you need 2 files, one is the configuration of new tables for the database, and the second is a file with a list of actions
File examples:
- actions_example.yaml
- base_example.yaml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
YamlBase-0.1.1.tar.gz
(22.9 kB
view details)
File details
Details for the file YamlBase-0.1.1.tar.gz.
File metadata
- Download URL: YamlBase-0.1.1.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efed4992a7bd210f7e3cbccfb8a7caafaca69cb662eb599a5916c084ffe25a02
|
|
| MD5 |
893ffbf1ad5f0754416065d2e0ef1959
|
|
| BLAKE2b-256 |
f1707f1dc727694b83ef7d5d34f211f520fd9265b67b57d5eeb1629296199775
|