Versions in this module Expand all Collapse all v1 v1.0.2 Jan 30, 2026 Changes in this version + type Config struct + DBName string + Host string + Password string + Port string + SSLMode string + User string + type PostgresDB struct + DB *sql.DB + func NewPostgresDB(config Config) (*PostgresDB, error) + func (p *PostgresDB) Close() error + func (p *PostgresDB) GetAllCSVData() ([]map[string]interface{}, error) + func (p *PostgresDB) GetCSVDataByID(id int) (map[string]interface{}, error) + func (p *PostgresDB) InitSchema() error + func (p *PostgresDB) InsertCSVData(filename string, records []map[string]string) error