database

package
v0.0.0-...-08a5d78 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Insert(query string, args ...interface{}) (InsertResult, error)
	Update(query string, args ...interface{}) (UpdateResult, error)
	Query(query string, args ...interface{}) ([]utils.H, error)
	Close() error
}

type InsertResult

type InsertResult struct {
	LastInsertId int64
}

func NewInsertResult

func NewInsertResult(lastInsertId int64) InsertResult

type UpdateResult

type UpdateResult struct {
	RowsAffected int64
}

func NewUpdateResult

func NewUpdateResult(rowsAffected int64) UpdateResult

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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