dao

package
v1.22.38 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotEntity              = errors.New("db: the instance is not entity")
	ErrorDBTypeNotAvailable     = errors.New("db: db type not available")
	ErrorPrimaryKeyCannotBeNull = errors.New("db: primary key cannot set to null")
	ErrorUnsupporttedDataType   = errors.New("db: the data type not supported yet")
)

Functions

This section is empty.

Types

type Client

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

Client for sqlite3

func NewInstance

func NewInstance(path string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Create

func (c *Client) Create(entity interface{}) error

type EntityColumn

type EntityColumn struct {
	Field    reflect.StructField
	Column   string
	Nullable bool
	Pk       bool
}

type QueryBuilder

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

Jump to

Keyboard shortcuts

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