tgorm

package
v1.0.0-beta.41 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GormDBForPrintingSQL

func GormDBForPrintingSQL(dbType DBType) *gorm.DB

GormDBForPrintingSQL is creating a gorm.DB instance that can be used to print or check SQL (without connecting to postgres for example). This is useful for checking generated SQL statements.

Types

type DBType

type DBType string

DBType Supported databases by this package. Added here to prevent circular dependencies.

const (
	// PostgreSQL is the PostgreSQL database type.
	PostgreSQL DBType = "postgresql"
	// SQLite is the SQLite database type.
	SQLite DBType = "sqlite"
)

Jump to

Keyboard shortcuts

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