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 details)
Built Distribution
everstone-0.1.2-py3-none-any.whl
(12.9 kB
view details)
File details
Details for the file everstone-0.1.2.tar.gz
.
File metadata
- Download URL: everstone-0.1.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.11.2-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8aa387cdfdf9d9fcc35b5c575daac246d1511579ab70dd479e8fbad1a04ec54 |
|
MD5 | 53996cf9905e7aae2c348cb4c13754a6 |
|
BLAKE2b-256 | cd951d88c9d9e096baa8abb30833f17429af8f3fd0b135a017bc54d6442c8d85 |
File details
Details for the file everstone-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: everstone-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.11.2-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 179d36210bb8ad01d1a5b5608c4fa069418d7a8057578cdd141b7a0d545931f3 |
|
MD5 | 2426e8dbe52d6626c6158ba75be3fa86 |
|
BLAKE2b-256 | 15732e292b827b7bebd9811163f8f992bfabe4d375c2f21ba8dff724c9c5dee3 |