Skip to content

Commit

Permalink
cleanup old database config types
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 14, 2023
1 parent e89498b commit 809edb4
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,6 @@ type Config struct {
MaxIdleConns int `yaml:"maxIdleConns" envconfig:"DATABASE_PGSQL_WRITER_MAX_IDLE_CONNS"`
} `yaml:"pgsqlWriter"`
} `yaml:"database"`

ReaderDatabase struct {
Username string `yaml:"user" envconfig:"READER_DB_USERNAME"`
Password string `yaml:"password" envconfig:"READER_DB_PASSWORD"`
Name string `yaml:"name" envconfig:"READER_DB_NAME"`
Host string `yaml:"host" envconfig:"READER_DB_HOST"`
Port string `yaml:"port" envconfig:"READER_DB_PORT"`
MaxOpenConns int `yaml:"maxOpenConns" envconfig:"READER_DB_MAX_OPEN_CONNS"`
MaxIdleConns int `yaml:"maxIdleConns" envconfig:"READER_DB_MAX_IDLE_CONNS"`
} `yaml:"readerDatabase"`
WriterDatabase struct {
Username string `yaml:"user" envconfig:"WRITER_DB_USERNAME"`
Password string `yaml:"password" envconfig:"WRITER_DB_PASSWORD"`
Name string `yaml:"name" envconfig:"WRITER_DB_NAME"`
Host string `yaml:"host" envconfig:"WRITER_DB_HOST"`
Port string `yaml:"port" envconfig:"WRITER_DB_PORT"`
MaxOpenConns int `yaml:"maxOpenConns" envconfig:"WRITER_DB_MAX_OPEN_CONNS"`
MaxIdleConns int `yaml:"maxIdleConns" envconfig:"WRITER_DB_MAX_IDLE_CONNS"`
} `yaml:"writerDatabase"`
}

type SqliteDatabaseConfig struct {
Expand Down

0 comments on commit 809edb4

Please sign in to comment.