//
pkg.gl
Category
github.com/packtpublishing/go-cookbook
Chapter05
dbinterface
package
0.0.0-20230130100827-6c64ebff31b2
Repository:
https://github.com/packtpublishing/go-cookbook.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
0
Files
62 SLOC
#
Packages
example
No description provided by the author
#
Functions
Create
Create makes a table called example and populates it.
Exec
Exec replaces the Exec from the previous recipe.
Query
Query grabs a new connection creates tables, and later drops them and issues some queries.
#
Interfaces
DB
DB is an interface that is satisfied by an sql.DB or an sql.Transaction.
Transaction
Transaction can do anything a Query can do plus Commit, Rollback, or Stmt.