Documentation ¶ Index ¶ func LoadSql(log *zap.SugaredLogger, f string, dsn *url.URL) error func Open(dsn *url.URL) (*sqlx.DB, error) func QuerySql(log *zap.SugaredLogger, f string, dsn *url.URL) error func StatusCheck(ctx context.Context, db *sqlx.DB, log *zap.SugaredLogger) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LoadSql ¶ func LoadSql(log *zap.SugaredLogger, f string, dsn *url.URL) error func Open ¶ func Open(dsn *url.URL) (*sqlx.DB, error) func QuerySql ¶ func QuerySql(log *zap.SugaredLogger, f string, dsn *url.URL) error func StatusCheck ¶ func StatusCheck(ctx context.Context, db *sqlx.DB, log *zap.SugaredLogger) error StatusCheck returns nil if it can successfully talk to the database. It returns a non-nil error otherwise. Types ¶ This section is empty. Source Files ¶ View all Source files batch.go db.go Click to show internal directories. Click to hide internal directories.