How `fastlite` handles NULL vs Empty Strings
mainUnlike many Python ORMs, fastlite preserves the semantic distinction between None (SQL NULL) and an empty string ('').
Nonerepresents "unknown" or "missing" data.''represents "known to be empty."
This distinction is maintained during both Python-to-SQLite insertion and SQLite-to-Python retrieval, allowing for precise queries using WHERE column IS NULL or WHERE column = ''.
# Inserting NULL
result_null = people.insert(name=None)
assert result_null.name is None
# Inserting empty string
result_empty = people.insert(name='')
assert result_empty.name == ''