sql

package
v0.6.0-alpha.1.pre.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Persister

type Persister struct {
	// contains filtered or unexported fields
}

func NewPersister

func NewPersister(dsn string, l *logrusx.Logger, namespaces namespace.Manager) (*Persister, error)

func (*Persister) DeleteRelationTuples

func (p *Persister) DeleteRelationTuples(ctx context.Context, rs ...*relationtuple.InternalRelationTuple) error

func (*Persister) GetRelationTuples

func (*Persister) MigrationBox

func (p *Persister) MigrationBox(ctx context.Context) (*popx.MigrationBox, error)

func (*Persister) NamespaceFromName

func (p *Persister) NamespaceFromName(ctx context.Context, name string) (*namespace.Namespace, error)

func (*Persister) NamespaceMigrationBox

func (p *Persister) NamespaceMigrationBox(_ context.Context, n *namespace.Namespace) (*popx.MigrationBox, error)

func (*Persister) TransactRelationTuples

func (*Persister) WriteRelationTuples

func (p *Persister) WriteRelationTuples(ctx context.Context, rs ...*relationtuple.InternalRelationTuple) error

Jump to

Keyboard shortcuts

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