db_sqlite3

package
v0.0.0-...-9b58f4d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(query string, db *sql.DB) error

func Delete

func Delete(query string, db *sql.DB, args []interface{}) error

func InitDB

func InitDB(file string) (*sql.DB, error)

func Insert

func Insert(query string, db *sql.DB, args ...interface{}) error

func Insert2

func Insert2(query string, db *sql.DB, args []interface{}) error

func Select

func Select(query string, db *sql.DB, condition []interface{}, resultNames []string, resultTypes []string) ([]interface{}, error)

func Update

func Update(query string, db *sql.DB, args []interface{}) error

Types

type TEST_TABLE

type TEST_TABLE struct {
	Id       int
	UserId   string
	Password string
}

func SelectOne

func SelectOne(query string, db *sql.DB, condition interface{}) (TEST_TABLE, error)

Jump to

Keyboard shortcuts

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