Skip to main content

toolsql makes it easy to read and write from sql databases

Project description

toolsql

toolsql makes it simple to work with db schemas and queries

the goal is to create an opinionated lightweight wrapper around SqlAlchemy that lowers boilerlpace and cognitive overhead without resorting to magic

Features

  • define schemas, queries, and migrations using JSON
  • compatible with postgresql and sqlite
  • uses sqlalchemy under the hood

Contents

  1. Installation
  2. Usage
  3. Reference

Installation

Usage

Log In To Database

Inspect Current Database Schema

Define CLI

Insert, Select, Update, and Delete Rows

Reference

  1. Module Reference
  2. CLI Reference
  3. Schema Reference
  4. Function Reference

Module Reference

  • toolsql.cli defines command line interface for toolsql
  • toolsql.crud_utils functions for inserting, selecting, updating, and deleting rows
  • toolsql.migrate_utils functions for migrations
  • toolsql.sqlalchemy functions for interfacing with sqlalchemy
  • toolsql.admin_utils
  • toolsql.summary_utils

CLI Reference

Schema Reference

  • SQLDBSchema describes a database, including its tables
  • SQLTableSpec describes a table, including its columns, indices, and constraints
  • SQLColumn describes a column, including its datatype and constraints
  • see spec.py for specific structure of each schema

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

toolsql-0.3.8.tar.gz (22.1 kB view hashes)

Uploaded Source

Built Distribution

toolsql-0.3.8-py3-none-any.whl (35.8 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