database

package
v1.0.77 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBRepository

type DBRepository interface {
	CreateDocument(ctx context.Context, partitionKey string, document interface{}) error
	UpdateDocument(ctx context.Context, partitionKey string, id string, document interface{}) error
	DeleteDocument(ctx context.Context, partitionKey string, id string) error
	GetDocument(ctx context.Context, partitionKey string, id string) (interface{}, error)
}

DBRepository represents the interface for interacting with document in the database.

type Database

type Database interface {
	Repository() DBRepository
}

Database represents the interface for interacting with the database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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