entity

package
v0.0.0-...-8f4226c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionOptions

type ConnectionOptions func(db *sql.DB)

type MongoClient

type MongoClient = *mongo.Client

type Options

type Options struct {
	Name     string `json:"name" validate:"required"`
	Driver   string `json:"driver" validate:"required"`
	Host     string `json:"host" validate:"required"`
	User     string `json:"user" validate:"required"`
	Password string `json:"password" validate:"required"`
	Database string `json:"database" validate:"required"`
	SSLMode  string `json:"ssl_mode" default:"disable"`
	Schema   string `json:"schema" default:"public"`

	Port              int                 `json:"port" validate:"required"`
	ConnectionOptions []ConnectionOptions `json:"connection_options"`
	Retries           int                 `json:"retries"`
}

type Pool

type Pool map[string]interface{}

type SqlDB

type SqlDB = *sql.DB

type SqlPoolInterface

type SqlPoolInterface interface {
	*sql.DB | *mongo.Client
}

Jump to

Keyboard shortcuts

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