Registry / database / gorp-v2

gorp-v2

JSON →
library2.2.0gogounverified

Package gorp provides a simple way to marshal Go structs to and from SQL databases.

go get gopkg.in/gorp.v2
INSTALL
IMPORT
SIG · GORP-V2
G
gorp-v2
databasegov2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gorp
gopkg.in/gorp.v2

Create a DbMap for SQLite

package main import ( "database/sql" "gopkg.in/gorp.v2" _ "github.com/mattn/go-sqlite3" ) func main() { db, _ := sql.Open("sqlite3", ":memory:") dbmap := &gorp.DbMap{Db: db, Dialect: gorp.SqliteDialect{}} defer dbmap.Db.Close() }
Debug
Known issues
breakingGorp v2 uses gopkg.in/gorp.v2 import path; v1 uses gopkg.in/gorp.v1
fix
Use gopkg.in/gorp.v2 for v2.x releases
affects: >=2.0.0
Upgrade
Version history
2.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
Resources
gorp-v2 — go get gorp-v2 · libregistry