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.