Documentation ¶ Index ¶ func GetConnection(ctx context.Context, dbConf DBConfig) (*pgx.Conn, error) func GetConnectionPool(ctx context.Context, dbConf DBConfig) (*pgxpool.Pool, error) type DBConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetConnection ¶ func GetConnection(ctx context.Context, dbConf DBConfig) (*pgx.Conn, error) func GetConnectionPool ¶ func GetConnectionPool(ctx context.Context, dbConf DBConfig) (*pgxpool.Pool, error) Types ¶ type DBConfig ¶ type DBConfig struct { User string Pwd string Host string Port string Name string } Source Files ¶ View all Source files db.go Directories ¶ Show internal Expand all Path Synopsis entities exampletable Click to show internal directories. Click to hide internal directories.