Skip to main content

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


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)

Uploaded Source

Built Distribution

everstone-0.1.2-py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page