database

package
v0.0.0-...-b6dd5f9 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

Storage repository

Documentation

Overview

Package database provides the database interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRepository

type IRepository[T any] interface {
	List(ctx context.Context) ([]T, error)
	Get(ctx context.Context, id string) (T, error)
	Update(ctx context.Context, args T) error
	Create(ctx context.Context, args T) (string, error)
	Delete(ctx context.Context, id string) error
}

IRepository provides the interface for the database.

Directories

Path Synopsis
Package es provides an implementation of the database using elasticsearch.
Package es provides an implementation of the database using elasticsearch.
Package pg provides an implementation of the database using PostgreSQL.
Package pg provides an implementation of the database using PostgreSQL.
Package redis provides an implementation of the database using redis.
Package redis provides an implementation of the database using redis.

Jump to

Keyboard shortcuts

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