Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotExist not found ErrNotExist = errors.New("value not exist") )
Functions ¶
This section is empty.
Types ¶
type Dber ¶
type Dber interface { Exec(string, ...interface{}) (sql.Result, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) Prepare(query string) (*sql.Stmt, error) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) Query(query string, args ...interface{}) (*sql.Rows, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRow(query string, args ...interface{}) *sql.Row QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row }
Dber 数据库操作接口
type ShortURLDB ¶
ShortURLDB 短链接存储数据库
Click to show internal directories.
Click to hide internal directories.