Registry / orm / go-xorm-xorm

go-xorm-xorm

JSON →
library0.7.9gogounverified

A simple and powerful ORM for Go, supporting database operations.

go get github.com/go-xorm/xorm
INSTALL
IMPORT
SIG · GO-XORM-XORM
G
go-xorm-xorm
ormgov0.7.9
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.

xorm
github.com/go-xorm/xorm

Creates an in-memory SQLite database, inserts a user, and retrieves it.

package main import ( "fmt" "github.com/go-xorm/xorm" _ "github.com/mattn/go-sqlite3" ) type User struct { Id int64 Name string } func main() { engine, _ := xorm.NewEngine("sqlite3", ":memory:") engine.Sync2(new(User)) engine.Insert(&User{Name: "Alice"}) var user User engine.ID(1).Get(&user) fmt.Println(user.Name) }
Debug
Known issues
gotchaThis package is no longer maintained; consider using xorm.io/xorm instead.
fix
Use import path xorm.io/xorm for the maintained fork.
affects: >=0.7.0
Upgrade
Version history
0.7.9latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
Resources
go-xorm-xorm — go get go-xorm-xorm · libregistry