A Python query builder inspired by Objection.js
Welcome to the documentation for Sustained, a Python query builder inspired by Objection.js.
This documentation provides a detailed guide on how to use the library to define models and build complex SQL queries in a programmatic way.
If you are new to Sustained, it’s recommended to read the guides in the following order:
where methods for filtering your results.The docstrings in the source code provide a comprehensive API reference. You can use Python’s built-in help() function to get detailed information about any class or method.
from sustained import Model, QueryBuilder
# Get help on the Model class
help(Model)
# Get help on the QueryBuilder class
help(QueryBuilder)