Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract ReservedPrefix constant #3497

Merged
merged 3 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix names
  • Loading branch information
AlekSi committed Oct 5, 2023
commit 5f98f3f0ac56d907ea27cc2d33b2bd0c5ad6cd37
2 changes: 1 addition & 1 deletion internal/backends/sqlite/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

const (
// DefaultColumn is a column name for all fields.
DefaultColumn = backends.ReservedPrefix + "_sjson"
DefaultColumn = backends.ReservedPrefix + "sjson"

// IDColumn is a SQLite path expression for _id field.
IDColumn = DefaultColumn + "->'$._id'"
Expand Down
2 changes: 1 addition & 1 deletion internal/backends/sqlite/metadata/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const (
reservedTablePrefix = "sqlite_"

// SQLite table name where FerretDB metadata is stored.
metadataTableName = backends.ReservedPrefix + "_collections"
metadataTableName = backends.ReservedPrefix + "collections"
)

// Parts of Prometheus metric names.
Expand Down