sql

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetaDAO

func NewMetaDAO(db *gorm.DB) meta.DAO

Types

type Meta

type Meta struct {
	NodeId    string `gorm:"primaryKey;column:node_id;type:varchar(255);notNull;index;"`
	Namespace string `gorm:"primaryKey;column:namespace;type:varchar(255);notNull"`
	Author    string `gorm:"column:author;type:varchar(255);index:,composite:auth;"`
	Timestamp int64  `gorm:"column:timestamp;index:,composite:ts;"`
	Data      []byte `gorm:"column:data;"`
	Format    string `gorm:"column:format;type:varchar(255);index:,composite:fmt;"`
}

func (*Meta) TableName

func (*Meta) TableName(namer schema.Namer) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL