sql

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HardDeleteByID added in v0.4.0

func HardDeleteByID(conn *sqlx.DB, target string, id int64) (err error)

func InsertInto

func InsertInto(conn *sqlx.DB, target string, data RequestParameter) (interface{}, error)

func SelectByID added in v0.4.0

func SelectByID(conn *sqlx.DB, target string, id int64, data interface{}) error

func SoftDeleteByID added in v0.4.0

func SoftDeleteByID(conn *sqlx.DB, target string, id int64) (err error)

func Update

func Update(conn *sqlx.DB, target string, writeData RequestParameter) (interface{}, error)

Types

type RequestParameter

type RequestParameter interface {
	SQLParamsRequest() []string
}

Jump to

Keyboard shortcuts

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