ent_sqlite

package module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 5 Imported by: 0

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)
    }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	*sqlite.Driver
}

Driver is sqlite driver wrapper

func (Driver) Open

func (d Driver) Open(dsn string) (driver.Conn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL