sql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQLClient

func NewMySQLClient(dsn string) (*sql.DB, error)

NewMySQLClient returns a new MySQL database client. dsn: user:password@tcp(host:port)/dbname?charset=utf8mb4&parseTime=True&loc=Local

func NewPostgreClient

func NewPostgreClient(dsn string) (*sql.DB, error)

NewPostgreClient returns a new PostgreSQL database client. dsn: host=localhost port=5432 user=postgres password=password dbname=postgres sslmode=disable

Types

This section is empty.

Jump to

Keyboard shortcuts

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