Documentation ¶
Index ¶
- func BootstrapNeo4jDatabase(ctx context.Context, t *testing.T, db *neo4j.Database)
- func BootstrapPgDatabase(ctx context.Context, t *testing.T, db *pg.Database)
- func CleanupNeo4jStore(ctx context.Context, t *testing.T, db *neo4j.Database)
- func CleanupPgStore(ctx context.Context, t *testing.T, db *pg.Database)
- func CleanupRedisStore(ctx context.Context, t *testing.T, db *redis.Database)
- func MakeUserSystemOwner(userID model.ID, db *neo4j.Database) error
- func NewNeo4jDatabase(t *testing.T, conf *config.GraphDatabaseConfig) (*neo4j.Database, func(ctx context.Context) error)
- func NewPgDatabase(t *testing.T, conf *config.RelationalDatabaseConfig) (*pg.Database, func() error)
- func NewRedisDatabase(t *testing.T, conf *config.CacheDatabaseConfig) (*redis.Database, func() error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapNeo4jDatabase ¶
BootstrapNeo4jDatabase creates the initial database schema for the system.
func BootstrapPgDatabase ¶
BootstrapPgDatabase creates the initial database schema for the system.
func CleanupNeo4jStore ¶
CleanupNeo4jStore deletes all nodes and relationships from the database.
func CleanupRedisStore ¶
CleanupRedisStore deletes all keys from the database.
func MakeUserSystemOwner ¶
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.
Click to show internal directories.
Click to hide internal directories.