Documentation ¶
Index ¶
- type GormDB
- func (d *GormDB) AutoMigrate(dst ...interface{}) error
- func (d *GormDB) Create(value interface{}) error
- func (d *GormDB) Filter(dest interface{}, conds ...interface{}) error
- func (d *GormDB) First(dest interface{}, conds ...interface{}) error
- func (d *GormDB) Get(dest interface{}, key string) error
- func (d *GormDB) GetUser(dest interface{}, id string) error
- type GormSqliteBackend
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormDB ¶
func (*GormDB) AutoMigrate ¶
type GormSqliteBackend ¶
type GormSqliteBackend struct {
Name string
}
func NewSqliteBackend ¶
func NewSqliteBackend(name string) *GormSqliteBackend
func (*GormSqliteBackend) Disconnect ¶
func (b *GormSqliteBackend) Disconnect() error
Click to show internal directories.
Click to hide internal directories.