Enable SQLITE_ENABLE_COLUMN_METADATA permanently#45
Merged
otoolep merged 1 commit intorqlite:masterfrom Mar 8, 2026
Merged
Conversation
Remove the sqlite_column_metadata build tag constraint so that SQLITE_ENABLE_COLUMN_METADATA is always compiled in, making ColumnTableName() available without requiring a build tag. This follows the same pattern as SQLITE_ENABLE_PREUPDATE_HOOK, which is already always enabled in this fork.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the
sqlite_column_metadatabuild tag constraint so thatSQLITE_ENABLE_COLUMN_METADATAis always compiled in. This makesColumnTableName()available without requiring-tags sqlite_column_metadata.This follows the same pattern as
SQLITE_ENABLE_PREUPDATE_HOOK, which is already always enabled in this fork.Changes
sqlite3_opt_column_metadata.go— Remove//go:build sqlite_column_metadataand// +build sqlite_column_metadatalinessqlite3_opt_column_metadata_test.go— Remove corresponding build tag linesMotivation
This change is needed to support table-qualified column names for JOIN queries in rqlite (see rqlite/rqlite#2516). Enabling column metadata permanently simplifies the build and removes the need for special build tags in downstream consumers.
Test plan
go build ./...compiles without-tags sqlite_column_metadatago test ./...passes, includingTestColumnTableNameColumnTableName()is available without build tags