Documentation
¶
Index ¶
- Constants
- Variables
- type Any
- type Column
- type DataType
- type Sequence
- type Table
- func (t *Table) DefaultSequenceName() string
- func (t *Table) Equal(o *Table) bool
- func (t *Table) GetColumn(name string) *Column
- func (t *Table) GetColumns() []*Column
- func (t *Table) ID() uint64
- func (t *Table) Key() string
- func (t *Table) Name() string
- func (t *Table) Prefix() *keys.Key
- func (t *Table) Span() *keys.Span
- func (t *Table) Value() ([]byte, error)
- func (t *Table) WithID(id uint64)
Constants ¶
View Source
const NAME_VALIDATION_REGEXP = "[A-z0-9_]"
View Source
const ReservedInternalColumnName = "__key"
Variables ¶
View Source
var DebugTables = false
Functions ¶
This section is empty.
Types ¶
type Any ¶
type Any[V any] interface { WithID(id uint64) ID() uint64 Key() string Name() string Equal(o V) bool }
Any is the interface that all descriptors must implement.
type Column ¶
func InternalKeyColumn ¶
func NewSequenceColumn ¶
func SequenceColumn ¶
SequenceColumn is a utility function which turns a name and a scanned token into a desc column.
type Sequence ¶
func NewSequence ¶
type Table ¶
type Table struct {
TID uint64 `json:"id"`
TName string `json:"name"`
Columns []*Column `json:"columns"`
PrimaryKey []string `json:"primary_key"`
}
func NewTableFromBytes ¶
func NewTableWithID ¶
func (*Table) DefaultSequenceName ¶
func (*Table) GetColumns ¶
Click to show internal directories.
Click to hide internal directories.