Skip to content

Make column type constants constexpr - #609

Merged
SRombauts merged 2 commits into
masterfrom
302-feature-constexpr-column-types
Oct 24, 2026
Merged

SRombauts merged 2 commits into
masterfrom
302-feature-constexpr-column-types

Conversation

@SRombauts

Copy link
Copy Markdown
Owner

Make the five SQLite column type codes inline constexpr so they work in switch labels, without including sqlite3.h in public headers. Check their values against SQLite at compile time and add a runtime regression test.

This intentionally removes the old exported const int symbols as part of the 4.0 ABI break. Fixes #302.

Expose the five stable SQLite datatype codes as C++17 inline
constants so they can be used in switch labels. Check the values
against SQLite headers at build time and cover runtime types.
Document the source and ABI change for SQLiteCpp 4.0 in #609.
@coveralls

coveralls commented Oct 24, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 99.735%. remained the same — 302-feature-constexpr-column-types into master

@SRombauts
SRombauts merged commit 716d34a into master Oct 24, 2026
72 checks passed
@SRombauts
SRombauts deleted the 302-feature-constexpr-column-types branch October 24, 2026 11:33
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.

SQLite::INTEGER, SQLite::FLOAT,... not declared constexpr

2 participants