database

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name     string
	Adapter  string
	User     string
	Password string
	Host     string
	Port     string
	SSLMode  string
}

func (*Config) GetAdapter

func (c *Config) GetAdapter() (string, error)

func (*Config) GetDSN

func (c *Config) GetDSN() string

type DB

type DB = sqlx.DB

func New

func New(cfg *Config) (*DB, error)

Source Files

  • database.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL