sqlite-utils/tests
Simon Willison 57e43baece Table options can now be passed to constructor OR to insert_all()
If you want to set default options for a table, you can do this:

    table = db.table("dogs", pk="id", column_order=["name", "age"])

If you pass those keyword arguments to the .insert/.update/etc
methods they will over-ride the defaults you set on the table.

    table = db["dogs"] # This still works too
2019-07-22 16:30:54 -07:00
..
__init__.py Initial project layout + database table creation tools 2018-07-28 06:46:17 -07:00
conftest.py Use pysqlite3 if available 2019-07-22 15:39:35 -07:00
test_black.py Revert "No need to skip black under Python 3.7 any more" 2019-01-24 19:08:52 -08:00
test_cli.py Use pysqlite3 if available 2019-07-22 15:39:35 -07:00
test_create.py Table options can now be passed to constructor OR to insert_all() 2019-07-22 16:30:54 -07:00
test_enable_fts.py sqlite-utils optimize command, .optimize() and .detect_fts() table methods 2019-01-24 20:35:51 -08:00
test_get.py .get() method plus support for compound primary keys (#40) 2019-07-14 21:28:51 -07:00
test_introspect.py add_foreign_key can now detect table and pk, refs #25 2019-06-12 21:51:09 -07:00
utils.py 'sqlite-utils add-column name type' command, closes #15 2019-02-24 12:04:33 -08:00