Registry / orm / jinzhu-gorm-v1

jinzhu-gorm-v1

JSON →
library1.9.2gogounverified

The fantastic ORM library for Golang, version 1, providing a full-featured ORM for database interactions.

go get gopkg.in/jinzhu/gorm.v1
INSTALL
IMPORT
SIG · JINZHU-GORM-V1
J
jinzhu-gorm-v1
ormgov1.9.2
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.

gorm
gopkg.in/jinzhu/gorm.v1

Opens a SQLite database and auto-migrates a User model.

package main import ( "gopkg.in/jinzhu/gorm.v1" _ "github.com/mattn/go-sqlite3" ) type User struct { gorm.Model Name string } func main() { db, _ := gorm.Open("sqlite3", "test.db") defer db.Close() db.AutoMigrate(&User{}) }
Debug
Known issues
breakingGORM v1 is legacy; consider upgrading to GORM v2 for new projects.
fix
Use gorm.io/gorm instead of gopkg.in/jinzhu/gorm.v1.
affects: >=1.0.0
Upgrade
Version history
1.9.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
jinzhu-gorm-v1 — go get jinzhu-gorm-v1 · libregistry