dao

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Test0

type Test0 struct {
	ID        int64     `xorm:"not null pk autoincr BIGINT(20) id"`
	CreatedAt time.Time `xorm:"created not null default CURRENT_TIMESTAMP TIMESTAMP created_at"`
	UpdatedAt time.Time `xorm:"updated_at TIMESTAMP"`
	UserID    string    `xorm:"not null default 0 BIGINT(20) INDEX user_id"`
}

type Test1

type Test1 struct {
	ID     string `xorm:"not null pk autoincr BIGINT(20) id"`
	UserID string `xorm:"not null default 0 BIGINT(20) INDEX user_id"`
}

type Test2

type Test2 struct {
	ID        int64     `xorm:"not null pk autoincr BIGINT(20) id"`
	CreatedAt time.Time `xorm:"created not null default CURRENT_TIMESTAMP TIMESTAMP created_at"`
	UpdatedAt time.Time `xorm:"updated_at TIMESTAMP"`
}

type TestDbDao

type TestDbDao struct {
	// contains filtered or unexported fields
}

func NewTestDbDao

func NewTestDbDao() *TestDbDao

NewTestDbDao

func (*TestDbDao) Info

func (m *TestDbDao) Info(ctx context.IContext, ID int64) (*Test0, bool, error)

func (*TestDbDao) Sync

func (m *TestDbDao) Sync(ctx context.IContext) error

Jump to

Keyboard shortcuts

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