Changelog

Version 0.1.4 - 2026-11-29

[python/database_tools/0.1.4] Bug fix (Table.select_all)

`Table.select_all` incorrectly used list(map(...)), instead of a list
comprehension to return rows.

Additionally, `__invert__` instead of `__not__` is the correct operator for
"~".

Version 0.1.3 - 2026-11-21

[python/database_tools/0.1.3] In, importer

Added support for the IN expression (iterable or subquery):

    SELECT * FROM User WHERE User.id IN (
        SELECT id FROM Manager WHERE Manager.name LIKE 'M%'
    );

To reliably import the generated table classes from the model directory and
bind them to the `SQLiteDatabase`, the `sqlite_class_generator` now uses
`logiqub.importer`.

Version 0.1.2 - 2026-11-12

[python/database_tools/0.1.2] Field

A Field is created for each table column, allowing `Table.field == value`
to produce an expression `Equal(Table.field.name, value)`.

Expressions now handle the `&` (and), `|` (or), and `~` (not) operators.
Python doesn't offer operator overloading for `and`, `or`, and `not`
(boolean).

`__post_init__` now converts ISO time strings to `datetime` during
deserialization.

`transaction(db: Database)` added as a connection manager.

`SqliteDatabase` `execute` and `execute_script` now return the result.
That should handle using a `RETURNING` clause.

Version 0.1.1 - 2026-11-04

[python/database_tools/0.1.1] Bug fixes

Now uses logiqub_packager version 0.1.1.  That changes the import path
from `logiqub_database_tools` to `logiqub.database_tools`.

Bug fix:
- The import paths generated by `sqlite_class_generator` were incorrect.

- Furthermore, a leftover from a API transition was corrected.
  `Table.select_one()` now calls `Select().one()` which calls
  `SqliteDatabase.select_one()`.  The old functions `select_one()`,
  `select_all()` were removed, and replace by their newer versions.
  `select_id()` and `select_ids()` were removed to streamline the API.

Signed-off-by: Victor René <logiqub@gmail.com>

Version 0.1.0 - 2026-11-03

[python/database_tools/0.1.0] Intial commit

A database toolkit (for SQLite)