dialets

package
v0.0.0-...-d64eb31 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MSSqlDB

func MSSqlDB(dsn string) (db *gorm.DB, err error)

MSSqlDB Get MS SQL DB connection dsn string Ex: sqlserver://username:password@localhost:1433?database=dbname

func MySqlDB

func MySqlDB(dsn string) (db *gorm.DB, err error)

MySqlDB Get MySQL DB connection dsn string Ex: user:password@/db_name?charset=utf8&parseTime=True&loc=Local

func PostgresDB

func PostgresDB(dsn string) (db *gorm.DB, err error)

PostgresDB Get Postgres DB connection dns string Ex: host=myhost port=myport user=gorm dbname=gorm password=mypassword

func SQLiteDB

func SQLiteDB(dsn string) (db *gorm.DB, err error)

SQLiteDB Get SQLite DB connection dsn string Ex: /tmp/gorm.db

Types

This section is empty.

Jump to

Keyboard shortcuts

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