bmod

package
v0.0.0-...-ce6676e Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModDB

type ModDB struct {
	RowsAffected int64
	LastInsertId int64
	// contains filtered or unexported fields
}

func Create

func Create(structPtr interface{}) (retModDb *ModDB)

func Db

func Db(dsName ...string) (retModDb *ModDB)

func Delete

func Delete(structPtr interface{}) (retModDb *ModDB)

func Model

func Model(structPtr interface{}) (modDb *ModDB)

func Save

func Save(structPtr interface{}) (retModDb *ModDB)

func Tx

func Tx(tx *sql.Tx, dsName ...string) (retModDb *ModDB)

func Where

func Where(sqlStr string, args ...interface{}) (retModDb *ModDB)

func (*ModDB) Count

func (modDb *ModDB) Count(count *int) (retModDb *ModDB)

func (*ModDB) Create

func (modDb *ModDB) Create(structPtr interface{}) (retModDb *ModDB)

func (*ModDB) Db

func (modDb *ModDB) Db(dsName ...string) (retModDb *ModDB)

func (*ModDB) Delete

func (modDb *ModDB) Delete(structPtr interface{}) (retModDb *ModDB)

func (*ModDB) Error

func (modDb *ModDB) Error() error

func (*ModDB) ErrorFunc

func (modDb *ModDB) ErrorFunc() string

func (*ModDB) First

func (modDb *ModDB) First(structPtr interface{}) (retModDb *ModDB)

func (*ModDB) GetErr

func (modDb *ModDB) GetErr() (error, string)

func (*ModDB) Query

func (modDb *ModDB) Query(slicePtr interface{}) (retModDb *ModDB)

func (*ModDB) Row

func (modDb *ModDB) Row(columnList ...string) (*sql.Row, error)

func (*ModDB) Rows

func (modDb *ModDB) Rows(columnList ...string) (*sql.Rows, error)

func (*ModDB) Save

func (modDb *ModDB) Save(structPtr interface{}) (retModDb *ModDB)

func (*ModDB) Tx

func (modDb *ModDB) Tx(tx *sql.Tx, dsName ...string) (retModDb *ModDB)

func (*ModDB) Update

func (modDb *ModDB) Update(column string, value interface{}) (retModDb *ModDB)

func (*ModDB) UpdateColumns

func (modDb *ModDB) UpdateColumns(columnValueMap bsql.CV) (retModDb *ModDB)

func (*ModDB) Where

func (modDb *ModDB) Where(sqlStr string, args ...interface{}) (retModDb *ModDB)

type OrmModel

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

type OrmModelField

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

Jump to

Keyboard shortcuts

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