db

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

README

DB Conventions

  • Tables that contain constants, should be prefixed with "lv_" (lookup values). And the inserts for them should not change their order and be as part of the migration.
  • IDs which are not for internal usage only, should be stored as UUID data type.

TODOs

  • Prior to going live we should address the TODO in migrations.go & squash everything in a single migration.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPostgreeDatabase

func InitPostgreeDatabase(dsn string) (*gorm.DB, error)

func InitRedis

func InitRedis(host string, password string) (*redis.Client, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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