Skip to content

Enable SQLITE_ENABLE_COLUMN_METADATA permanently#45

Merged
otoolep merged 1 commit intorqlite:masterfrom
TanayK07:enable-column-metadata
Mar 8, 2026
Merged

Enable SQLITE_ENABLE_COLUMN_METADATA permanently#45
otoolep merged 1 commit intorqlite:masterfrom
TanayK07:enable-column-metadata

Conversation

@TanayK07
Copy link
Copy Markdown

@TanayK07 TanayK07 commented Mar 8, 2026

Summary

Remove the sqlite_column_metadata build tag constraint so that SQLITE_ENABLE_COLUMN_METADATA is always compiled in. This makes ColumnTableName() 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_metadata and // +build sqlite_column_metadata lines
  • sqlite3_opt_column_metadata_test.go — Remove corresponding build tag lines

Motivation

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_metadata
  • go test ./... passes, including TestColumnTableName
  • ColumnTableName() is available without build tags

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.
@otoolep otoolep merged commit 7dd9962 into rqlite:master Mar 8, 2026
2 checks passed
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