Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
Postgres contains objects for database communication.
func NewPostgres ¶
func NewPostgres(config *PostgresConfig) (*Postgres, error)
NewPostgres create new database instance.
func (*Postgres) RunFileQuery ¶
RunFileQuery Run sql schema
type PostgresConfig ¶
type PostgresConfig struct { Host string Port string User string Password string DbName string SSL string }
PostgresConfig contains the configurations for database.
func NewPostgresConfig ¶
func NewPostgresConfig() *PostgresConfig
NewPostgresConfig load the configuration for database.
func NewPostgresConfigMock ¶
func NewPostgresConfigMock() *PostgresConfig
NewPostgresConfigMock load the configuration for database - USED FOR TEST.
Click to show internal directories.
Click to hide internal directories.