dialects

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MSSqlDB

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

Ex: sqlserver://username:password@localhost:1433?database=db_name

func MySqlDB

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

Ex: username:password@tcp(localhost:3306)/db_name?charset=utf8mb4&parseTime=True&loc=Local

func PostgresDB

func PostgresDB(source string) (*gorm.DB, error)

Ex: postgresql://username:password@localhost:3306/db_name?sslmode=disable

func SQLiteDB

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

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