Documentation ¶
Index ¶
Constants ¶
View Source
const PostgresDriverName = "pgx"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlDatabase ¶
func NewSqlDatabase ¶
func NewSqlDatabase(ctx context.Context, driverName string, dataSourceName string) (*SqlDatabase, error)
NewSqlDatabase returns a pointer to new SqlDatabase instance. This function checks if supported driver name is provided, and pings the database to validate given data source name.
Click to show internal directories.
Click to hide internal directories.