db

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package db contains interface and implementation of repository for db

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRepository

type BaseRepository interface {
	// Ping checks connection to database
	Ping(ctx context.Context) error
	Disconnect(ctx context.Context) error
}

BaseRepository is high level implementation

type Type

type Type string

Type all supported db types

var (
	// MongoDb defines MongoDb database type
	MongoDb Type = "mongodb"
)

Directories

Path Synopsis
Package mongo implement common logic interaction with mongodb
Package mongo implement common logic interaction with mongodb

Jump to

Keyboard shortcuts

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