blob: 7d25d3b0a59184a6564da8eac107e8ba7b0236de [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package util
// TODO(sadovsky): Consider using shorter strings.
// Constants related to storage engine keys.
const (
AppPrefix = "$app"
DatabasePrefix = "$database"
DbInfoPrefix = "$dbInfo"
LogPrefix = "$log"
PermsPrefix = "$perms"
RowPrefix = "$row"
ServicePrefix = "$service"
SyncPrefix = "$sync"
TablePrefix = "$table"
VersionPrefix = "$version"
)
// Constants related to object names.
const (
// Service object name suffix for Syncbase-to-Syncbase RPCs.
SyncbaseSuffix = "$sync"
// Separator for batch info in database names.
BatchSep = ":"
// Separator for parts of storage engine keys.
KeyPartSep = ":"
// PrefixRangeLimitSuffix is the suffix of a key which indicates the end of
// a prefix range. Should be more than any regular key in the store.
// TODO(rogulenko): Change this constant to something out of the UTF8 space.
PrefixRangeLimitSuffix = "~"
)