gormdialects

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MSSqlDB

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

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

func MySqlDB

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

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

func PostgresDB

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

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

func SQLiteDB

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

SQLiteDB Get SQLite DB connection URI 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