repo

package
v0.0.0-...-4240263 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDialector = errors.New("Storage type not supported")
)

Functions

func GetRepo

func GetRepo(stg Storage, connStr string) (*ports.TodoRepository, error)

Types

type Storage

type Storage string
const (
	POSTGRESQL Storage = "POSTGRESQL"
	LIBSQL     Storage = "LIBSQL"
	SQLITE     Storage = "SQLITE"
	UNKNOWN    Storage = "UNKNOWN"
)

func StorageFromString

func StorageFromString(str string) Storage

Jump to

Keyboard shortcuts

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