Skip to content

Add Sqlite3.column_is_null function#71

Merged
mmottl merged 1 commit intommottl:mainfrom
keleshev:main
Feb 19, 2026
Merged

Add Sqlite3.column_is_null function#71
mmottl merged 1 commit intommottl:mainfrom
keleshev:main

Conversation

@keleshev
Copy link
Contributor

This is a small extension of the low-level column_* API to handle nulls.

Currently, if you use low-level functions like column_int but want to guard against the null case (instead of coercing to 0), the only option is to use the column function which is a bit of an overkill in this case. The new function allows to implement a simple null guard.

A more general solution would be to expose sqlite3_column_type, but I hope that column_is_null would be a no-frills extension to the current API either way.

@mmottl mmottl merged commit b4cd205 into mmottl:main Feb 19, 2026
5 checks passed
@mmottl
Copy link
Owner

mmottl commented Feb 19, 2026

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants