repository

package
v0.0.0-...-bf444b6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapNeo4jDatabase

func BootstrapNeo4jDatabase(ctx context.Context, t *testing.T, db *neo4j.Database)

BootstrapNeo4jDatabase creates the initial database schema for the system.

func BootstrapPgDatabase

func BootstrapPgDatabase(ctx context.Context, t *testing.T, db *pg.Database)

BootstrapPgDatabase creates the initial database schema for the system.

func CleanupNeo4jStore

func CleanupNeo4jStore(ctx context.Context, t *testing.T, db *neo4j.Database)

CleanupNeo4jStore deletes all nodes and relationships from the database.

func CleanupPgStore

func CleanupPgStore(ctx context.Context, t *testing.T, db *pg.Database)

func CleanupRedisStore

func CleanupRedisStore(ctx context.Context, t *testing.T, db *redis.Database)

CleanupRedisStore deletes all keys from the database.

func MakeUserSystemOwner

func MakeUserSystemOwner(userID model.ID, db *neo4j.Database) error

MakeUserSystemOwner elevates the user to system owner.

func NewNeo4jDatabase

func NewNeo4jDatabase(t *testing.T, conf *config.GraphDatabaseConfig) (*neo4j.Database, func(ctx context.Context) error)

NewNeo4jDatabase creates a new Neo4j database connection for testing.

func NewPgDatabase

func NewPgDatabase(t *testing.T, conf *config.RelationalDatabaseConfig) (*pg.Database, func() error)

NewPgDatabase creates a new PostgreSQL database connection for testing.

func NewRedisDatabase

func NewRedisDatabase(t *testing.T, conf *config.CacheDatabaseConfig) (*redis.Database, func() error)

NewRedisDatabase creates a new Redis database connection for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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