db

package
v0.0.0-...-9d0e06d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTableIfDoesntExists

func CreateTableIfDoesntExists(db *gorm.DB, tableName, ddlScript string) error

CreateTableIfDoesntExists based on the error, check if it's needed to create a table for current tenantId

func GetConnection

func GetConnection(host, port, user, password, dbName string, ssl bool) (*gorm.DB, error)

GetConnection establishes a connection to the database and return the connection instance

func IsMissingTableError

func IsMissingTableError(err error) bool

IsMissingTableError function to return if the error is related to missing table

Types

This section is empty.

Jump to

Keyboard shortcuts

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