You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xiaoqidun 6e5a65bd47 feat(升级依赖): 升级依赖 21 hours ago
.gitignore feat(初始项目): 初始项目 1 month ago
LICENSE Initial commit 1 month ago
README.md docs(更新文档): 更新文档 1 month ago
entps.go feat(初始项目): 初始项目 1 month ago
go.mod feat(升级依赖): 升级依赖 21 hours ago
go.sum feat(升级依赖): 升级依赖 21 hours ago

README.md

entps

ent pure go sqlite3 driver

example

package main

import (
	"context"
	"log"

	"<project>/ent"
	_ "github.com/xiaoqidun/entps"
)

func main() {
	client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
	if err != nil {
		log.Fatalf("failed opening connection to sqlite: %v", err)
	}
	defer client.Close()
	if err := client.Schema.Create(context.Background()); err != nil {
		log.Fatalf("failed creating schema resources: %v", err)
	}
}