Documentation ¶
Index ¶
- func Connect(driverName, dataSourceName string, opts ...otelsql.Option) (*sqlx.DB, error)
- func ConnectContext(ctx context.Context, driverName, dataSourceName string, opts ...otelsql.Option) (*sqlx.DB, error)
- func MustConnect(driverName, dataSourceName string, opts ...otelsql.Option) *sqlx.DB
- func MustOpen(driverName, dataSourceName string, opts ...otelsql.Option) *sqlx.DB
- func Open(driverName, dataSourceName string, opts ...otelsql.Option) (*sqlx.DB, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectContext ¶
func ConnectContext( ctx context.Context, driverName, dataSourceName string, opts ...otelsql.Option, ) (*sqlx.DB, error)
ConnectContext to a database and verify with a ping.
func MustConnect ¶
MustConnect connects to a database and panics on error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.