postgres

package
v0.0.0-alpha7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: AGPL-3.0 Imports: 11 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 *db.Postgres
}

EntityConfigRepository -.

func NewEntityConfigRepository

func NewEntityConfigRepository(pg *db.Postgres) *EntityConfigRepository

NewEntityConfigRepository -.

func (*EntityConfigRepository) All

All -

func (*EntityConfigRepository) Migrate

func (r *EntityConfigRepository) Migrate() error

Migrate -

func (*EntityConfigRepository) Read

Read -

func (*EntityConfigRepository) Write

func (r *EntityConfigRepository) Write(ctx context.Context, configs []repositories.EntityConfig, version string) 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() error

Migrate -

func (*RelationTupleRepository) QueryTuples

func (r *RelationTupleRepository) QueryTuples(ctx context.Context, entity string, entityID string, relation string) (tuple.ITupleIterator, error)

QueryTuples -

func (*RelationTupleRepository) Read

Read -.

func (*RelationTupleRepository) ReverseQueryTuples

func (r *RelationTupleRepository) ReverseQueryTuples(ctx context.Context, entity string, relation string, subjectEntity string, subjectIDs []string, subjectRelation string) (tuple.ITupleIterator, error)

ReverseQueryTuples -

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