Documentation
¶
Index ¶
- func CloseRows(rows *sql.Rows)
- func InsertSrc(db *sql.DB, q map[string]string)
- func MakeTables() []string
- func Query(ctx context.Context, db *sql.DB, query string, keys []interface{}) (*sql.Rows, object.Status)
- func QueryRow(ctx context.Context, db *sql.DB, query string, keys []interface{}) (*sql.Row, object.Status)
- func QueryRowTx(ctx context.Context, tx *sql.Tx, query string, keys []interface{}) (*sql.Row, object.Status)
- func QueryTx(ctx context.Context, tx *sql.Tx, query string, keys []interface{}) (*sql.Rows, object.Status)
- func Row(row *sql.Row, m model.Model) object.Status
- func Rows(rows *sql.Rows, m model.Models) object.Status
- func TxBegin(ctx context.Context, db *sql.DB) (*sql.Tx, object.Status)
- func TxCommit(tx *sql.Tx)
- func TxRollBack(tx *sql.Tx)
- type Configuration
- type LoremIpsum
- type New
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTables ¶
func MakeTables() []string
MakeTables returns a list of tables that need to create
func QueryRowTx ¶
func TxRollBack ¶
Types ¶
type Configuration ¶
type Configuration struct {
Name, Path, PathB,
Driver, Port, Connection string
}
Configuration for save parameters
type LoremIpsum ¶
type LoremIpsum struct {
// contains filtered or unexported fields
}
func NewLoremIpsum ¶
func NewLoremIpsum() *LoremIpsum
type Repo ¶
type Repo interface { Create(ctx context.Context, d dto.DTO) (int, object.Status) Delete(ctx context.Context, d dto.DTO) object.Status GetList(ctx context.Context, m model.Models) object.Status GetOne(ctx context.Context, m model.Model) object.Status ExportSettings() (*sql.DB, string, *object.Query) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.