Documentation
¶
Index ¶
Constants ¶
View Source
const ( TagDgland = "dgland" TagJson = "json" ModelTypeName = "Model" )
Variables ¶
View Source
var Client *dgo.Dgraph
Functions ¶
func AutoMigrate ¶
func AutoMigrate(models ...interface{}) error
AutoMigrate ใช้กำหนด Dgraph Schema อัตโนมัติ
Types ¶
type CancelFunc ¶
type CancelFunc func()
func SetupClient ¶
func SetupClient(target string) CancelFunc
SetupClient ใช้สำหรับการเชื่อมต่อฐานข้อมูล Dgraph ด้วย GRPC
Click to show internal directories.
Click to hide internal directories.