db

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Data Base package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	// Closer is the interface that wraps the basic Close method.
	io.Closer

	Init(ctx context.Context) error
	GetConn() interface{}
}

DB - common interface of db

type Store

type Store struct {
	Store DB
	// contains filtered or unexported fields
}

Store abstract type

func (*Store) Use

func (store *Store) Use(ctx context.Context, log logger.Logger) (*Store, error)

Use return implementation of db

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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