Documentation
¶
Index ¶
- type PostgresClient
- func (p *PostgresClient) Check() error
- func (p *PostgresClient) Close()
- func (p *PostgresClient) GetConnection(dbName ...string) (*gorm.DB, error)
- func (p *PostgresClient) Init(postgresConfigData []byte)
- func (p *PostgresClient) IsMultiDB() bool
- func (p *PostgresClient) ListConnNames() []string
- func (p *PostgresClient) UseCache() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresClient ¶
type PostgresClient struct {
// contains filtered or unexported fields
}
func (*PostgresClient) Check ¶
func (p *PostgresClient) Check() error
func (*PostgresClient) Close ¶
func (p *PostgresClient) Close()
func (*PostgresClient) GetConnection ¶
func (p *PostgresClient) GetConnection(dbName ...string) (*gorm.DB, error)
func (*PostgresClient) Init ¶
func (p *PostgresClient) Init(postgresConfigData []byte)
func (*PostgresClient) IsMultiDB ¶
func (p *PostgresClient) IsMultiDB() bool
func (*PostgresClient) ListConnNames ¶
func (p *PostgresClient) ListConnNames() []string
func (*PostgresClient) UseCache ¶
func (p *PostgresClient) UseCache() bool
Click to show internal directories.
Click to hide internal directories.