A simple database query generator.
pip install everstone
Requires Python 3.9.0+
from everstone import db
db.connect("test_database", "user_one", "abcd5432")
from everstone import db
auth_schema = db.Schema("auth")
await auth_schema.create()
CREATE TABLE user (user_id INTEGER PRIMARY KEY, name TEXT);
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()
CREATE TABLE user (user_id INTEGER PRIMARY KEY, name TEXT);