Simple Database Query Generator
Project description
everstone
A simple database query generator.
This project is still in active develpment and is not ready of usage.
Installation
pip install everstone
Requires Python 3.9.0+
Usage
Connecting a Database
from everstone import db
db.connect("test_database", "user_one", "abcd5432")
Creating a Schema:
from everstone import db
auth_schema = db.Schema("auth")
await auth_schema.create()
Resulting SQL
CREATE TABLE user (user_id INTEGER PRIMARY KEY, name TEXT);
Creating a Table:
from everstone import constraints, db, types
from everstone import Column
user_table = db.Table("user")
user_table.add_columns(
Column("user_id", types.Integer, constraints.PrimaryKey),
Column("name", types.Text)
)
await user_table.create()
Resulting SQL
CREATE TABLE user (user_id INTEGER PRIMARY KEY, name TEXT);
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
everstone-0.1.2.tar.gz
(9.9 kB
view hashes)
Built Distribution
everstone-0.1.2-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for everstone-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 179d36210bb8ad01d1a5b5608c4fa069418d7a8057578cdd141b7a0d545931f3 |
|
MD5 | 2426e8dbe52d6626c6158ba75be3fa86 |
|
BLAKE2b-256 | 15732e292b827b7bebd9811163f8f992bfabe4d375c2f21ba8dff724c9c5dee3 |