Registry / orm / facebookincubator-ent

facebookincubator-ent

JSON →
library0.14.6gogounverified

Package ent is the interface between end-user schemas and entc (ent codegen).

go get github.com/facebookincubator/ent
INSTALL
IMPORT
SIG · FACEBOOKINCUBATOR-
F
facebookincubator-ent
ormgov0.14.6
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.

ent
✓ github.com/facebookincubator/ent

Open an in-memory SQLite database and create the schema.

package main import ( "context" "fmt" "log" "github.com/facebookincubator/ent" "github.com/facebookincubator/ent/dialect/sql" ) func main() { client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1") if err != nil { log.Fatal(err) } defer client.Close() ctx := context.Background() if err := client.Schema.Create(ctx); err != nil { log.Fatal(err) } fmt.Println("Schema created successfully") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.14.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
32
Amazon
1
OpenAI (training)
1
Resources
facebookincubator-ent — go get facebookincubator-ent · libregistry