Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDriver ¶
NewDriver creates an ent SQL driver from the shared data configuration. Callers must blank-import the appropriate database/sql driver, e.g.:
_ "github.com/go-sql-driver/mysql" _ "github.com/lib/pq" _ "github.com/mattn/go-sqlite3"
func NewDriverWithTracing ¶ added in v0.3.2
NewDriverWithTracing creates a driver via NewDriver and wraps it with the tracing decorator. Pass the zap logger from your obs/logging.ZapLogger:
drv, err := ent.NewDriverWithTracing(cfg, zapLogger.Zap())
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.