Documentation ¶
Index ¶
- Constants
- type BoolCell
- type CellStorage
- type DateCell
- type IntCell
- type NumberCell
- type SQLStorage
- func (p SQLStorage) GetSchema(id uuid.UUID) (*model.Schema, error)
- func (p SQLStorage) UpdateRecord(schema model.Schema, record *model.Record) (*model.Record, error)
- func (p SQLStorage) WriteRecord(schema model.Schema, record *model.Record) (*model.Record, error)
- func (p SQLStorage) WriteSchema(schema *model.Schema) error
- type StringCell
Constants ¶
View Source
const ( CreateCell = "create" UpdateCell = "update" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolCell ¶
type CellStorage ¶
type CellStorage interface {
// contains filtered or unexported methods
}
type DateCell ¶
type IntCell ¶
type NumberCell ¶
type NumberCell struct { ID uuid.UUID `gorm:"column:id;primary_key"` RecordID uuid.UUID `gorm:"column:record_id"` Key string `gorm:"column:key"` Value float64 `gorm:"column:value;"` }
func (*NumberCell) BeforeCreate ¶
func (*NumberCell) BeforeCreate(scope *gorm.Scope) error
type SQLStorage ¶
func NewStorage ¶
func NewStorage() *SQLStorage
func (SQLStorage) UpdateRecord ¶
func (SQLStorage) WriteRecord ¶
func (SQLStorage) WriteSchema ¶
func (p SQLStorage) WriteSchema(schema *model.Schema) error
type StringCell ¶
type StringCell struct { ID uuid.UUID `gorm:"column:id;primary_key"` RecordID uuid.UUID `gorm:"column:record_id"` Key string `gorm:"column:key"` Value string `gorm:"column:value;"` }
func (*StringCell) BeforeCreate ¶
func (*StringCell) BeforeCreate(scope *gorm.Scope) error
Click to show internal directories.
Click to hide internal directories.