database

package
v0.0.0-...-b708652 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dsn = fmt.Sprintf("host=%s port=%s user=%s dbname=%s password=%s", DBCredentials().Host, DBCredentials().Port, DBCredentials().User, DBCredentials().Dbname, DBCredentials().Password)

Functions

func Connection

func Connection() *ent.Client

func Open

func Open(dsn string) *ent.Client

Types

type Database

type Database struct {
	Host     string
	Port     string
	User     string
	Dbname   string
	Password string
	SslMode  string
}

func DBCredentials

func DBCredentials() *Database

Jump to

Keyboard shortcuts

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