Skip to main content

Building queries

Project description



from simpleSQLBuilder.QueryBuilder import QueryBuilder

print(QueryBuilder().from_('users').select('id').select('name', 'email').where('id < 3').build().result) # 'SELECT id,name,email FROM users WHERE id < 3'

print(QueryBuilder().from_('users').where('id < 3').where('coin > 100').build().result) # 'SELECT * FROM users WHERE id < 3 AND coin > 100'

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

simpleSQLBuilder-1.0.1.tar.gz (1.9 kB view hashes)

Uploaded source

Built Distribution

simpleSQLBuilder-1.0.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded py3

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