- Prevent
getattr
on relationships from causing massive recursion errors.- Separate parts of
Session
out into a newSessionBase
.- Add new
DDLSession
, inherited fromSessionBase
.- Fix
Sqlite3Transaction.execute()
when no params are passed.- Add
Session.truncate()
to truncate tables. Falls back to DELETE FROM if it can’t.- Add
TableMeta.truncate()
to truncate tables, which callsSession.truncate()
.- Add
BaseResultSet.flatten()
to flatten a result set.- Fix the
aiomysql
connector to use ANSI sql mode.- Add new
Index
representing an index in a database. (PR #30)- Add
TableMeta.create()
to create tables fromTable
classes. (PR #30)- Add
Table.generate_schema()
to create a representative Python class from the table. (PR #30)- Add
DDLSession.get_indexes()
to getIndex
objects from an existing database. (PR #30)- Add
DDLSession.create_index()
to create an index on an existing database table. (PR #30)- Support
Index
objects inDDLSession.create_table()
.- Actually generate foreign keys upon table creation.
- Add
Serial
,BigSerial
, andSmallSerial
types to support automatic incrementation. (issue #17, PR #34)- Add
UpsertQuery
. (issue #32, PR #38)- Change
DatabaseInterface.emit_param()
to globally keep track of the param counter, which simplifies a lot of operator code.
- Initial release.