Documentation ¶
Index ¶
- type DB
- func (db *DB) Exec(query string, args ...interface{}) (sql.Result, error)
- func (db *DB) Get(dest interface{}, query string, args ...interface{}) (err error)
- func (db *DB) NamedExec(query string, arg interface{}) (sql.Result, error)
- func (db *DB) NamedQuery(query string, arg interface{}) (rows *sqlx.Rows, err error)
- func (db *DB) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (db *DB) QueryRowx(query string, args ...interface{}) *sqlx.Row
- func (db *DB) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)
- func (db *DB) Select(dest interface{}, query string, args ...interface{}) (err error)
- func (db *DB) SetLogger(logger Logger)
- type Logger
- type NullString
- type NullTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullString ¶
type NullString struct {
sql.NullString
}
func ToNullString ¶
func ToNullString(s string) NullString
func (*NullString) MarshalJSON ¶
func (n *NullString) MarshalJSON() ([]byte, error)
func (NullString) UnmarshalJSON ¶
func (n NullString) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.