test

package
v0.0.0-...-691959d Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDB

func CreateDB(DB *gorm.DB, dbUser, dbPassword, dbPort, dbHost, dbName string) error

CreateDB creates the database

func DropDB

func DropDB(DB *gorm.DB, dbUser, dbPassword, dbPort, dbHost, dbName string) error

DropDB drops the database

func GetID

func GetID() uuid.UUID

GetID returns an ID

func LoadEnvironment

func LoadEnvironment() error

LoadEnvironment for testing

func RecreateTables

func RecreateTables(DB *gorm.DB) error

RecreateTables recreates the tables in database

Types

type EntityType

type EntityType struct {
	Name       string
	Entity     model.Object
	NewEntity  model.Object
	NewEntity1 model.Object
}

EntityType represent abstraction for the diferent entities

Jump to

Keyboard shortcuts

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