adapters

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMongoClient

func CreateMongoClient(ctx context.Context, dbOptions *models.DBOptions) *mongo.Client

func CreatePostgresClient

func CreatePostgresClient(ctx context.Context, dbOptions *models.DBOptions) *gorm.DB

Types

type Adapter

type Adapter interface {
	CreateClient(ctx context.Context, options *models.DBOptions) interface{}
}

Jump to

Keyboard shortcuts

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