postgres

package
v0.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityConfigRepository

type EntityConfigRepository struct {
	Database *postgres.Postgres
}

EntityConfigRepository -.

func NewEntityConfigRepository

func NewEntityConfigRepository(pg *postgres.Postgres) *EntityConfigRepository

NewEntityConfigRepository -.

func (*EntityConfigRepository) All

func (r *EntityConfigRepository) All(ctx context.Context, version string) (configs entities.EntityConfigs, err error)

All -

func (*EntityConfigRepository) Clear

func (r *EntityConfigRepository) Clear(ctx context.Context, version string) error

Clear -

func (*EntityConfigRepository) Migrate

func (r *EntityConfigRepository) Migrate() (err error)

Migrate -

func (*EntityConfigRepository) Read

func (r *EntityConfigRepository) Read(ctx context.Context, name string, version string) (config entities.EntityConfig, err error)

Read -

func (*EntityConfigRepository) Write

func (r *EntityConfigRepository) Write(ctx context.Context, configs entities.EntityConfigs, version string) (err error)

Write -

type RelationTupleRepository

type RelationTupleRepository struct {
	Database *db.Postgres
}

RelationTupleRepository -.

func NewRelationTupleRepository

func NewRelationTupleRepository(pg *db.Postgres) *RelationTupleRepository

NewRelationTupleRepository -.

func (*RelationTupleRepository) Delete

Delete -.

func (*RelationTupleRepository) Migrate

func (r *RelationTupleRepository) Migrate() (err error)

Migrate -

func (*RelationTupleRepository) QueryTuples

func (r *RelationTupleRepository) QueryTuples(ctx context.Context, entity string, objectID string, relation string) (tuples entities.RelationTuples, err error)

QueryTuples -

func (*RelationTupleRepository) Read

Read -.

func (*RelationTupleRepository) Write

Write -.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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