Versions in this module Expand all Collapse all v1 v1.0.1 Mar 9, 2025 Changes in this version + func ClosePostgresDB() error + func CloseRedisClient() error + func CloseSQLiteDB() error + func GetPostgresDB() (*sql.DB, error) + func GetRedisClient() (*redis.Client, error) + func GetSQLiteDB() (*sql.DB, error) + type DatabaseType string + const PostgreSQL + const Redis + const SQLite + type Service struct + func NewService(dbType DatabaseType) (*Service, error) + func (s *Service) Close() error + func (s *Service) Exec(query string, args ...any) (sql.Result, error) + func (s *Service) GetDB() *sql.DB + func (s *Service) GetRedis() any + func (s *Service) Query(query string, args ...any) (*sql.Rows, error)