Versions in this module Expand all Collapse all v1 v1.3.1 Dec 21, 2023 Changes in this version + var ErrNotFoundID = errors.New("db: could not find ID") + func InitDB(driverName string, dataSourceName string) error + type DB struct + func NewPool(driverName string, dataSourceName string, maxOpenConns int, maxIdleConns int) (DB, error) + func (db DB) Close() error + func (db DB) PasteAdd(paste Paste) (string, int64, int64, error) + func (db DB) PasteDelete(id string) error + func (db DB) PasteDeleteExpired() (int64, error) + func (db DB) PasteGet(id string) (Paste, error) + type Paste struct + Author string + AuthorEmail string + AuthorURL string + Body string + CreateTime int64 + DeleteTime int64 + ID string + OneUse bool + Syntax string + Title string