Skip to main content

Python SQL query generator

Project description

EasySQL

Overview

EasySQL is a dependency-free, pythonic module to make your SQL projects easy and fast.

To install EasySQL, simply use pip install easysql. To view examples, look in examples.py, or continue reading for a more extensive description.

Conditionals

Conditionals can be imported directly from easysql.

from easysql import SQLConditional

Conditionals are initiated with a string representation of a condition.

from easysql import SQLConditional as sqc
condition = sqc('age > 17')

To join conditionals, use &, |, ~ for AND, OR, NOT, respecitvely. When compared, a new conditional is returned.

from easysql import SQLConditional as sqc

condition = sqc('age > 17')
condition2 = sqc('age < 100')

condition3 = condition & condition2 # AND
condition4 = condition | condition2 # OR
condition5 = ~condition # NOT

Queries

pass

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

easysql-1.0.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

easysql-1.0.0-py3-none-any.whl (10.4 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