database

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Connect(connectionString, dbName string) error
	Insert(data map[string]interface{}, dbRouteConfig config.DatabaseRouteConfig) error
	Close() error
}

Database is an interface that defines the methods that a database should implement

func LoadDatabasePlugin

func LoadDatabasePlugin(dbType string) (Database, error)

LoadDatabasePlugin loads the database plugin based on the database type

Jump to

Keyboard shortcuts

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