Categorygithub.com/ginx-contribs/ent-sqlite
modulepackage
1.1.0
Repository: https://github.com/ginx-contribs/ent-sqlite.git
Documentation: pkg.go.dev

# README

ent-sqlite

this is an ent sqlite driver adapter, because ent must use foreignkey.

install

go get github.com/ginx-contribs/ent-sqlite@latest

example

import (
    _   "github.com/ginx-contribs/ent-sqlite"
        "your_project/ent"
)


func main(){
    client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
    if err != nil {
        log.Fatal(err)
    }
}

# Structs

Driver is sqlite driver wrapper.