Documentation ¶
Overview ¶
Package database provides PostgreSQL management for Temporal (https://github.com/RTradeLtd/Temporal), an easy-to-use interface into distributed and decentralized storage technologies for personal and enterprise use cases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type DBOptions ¶
type DBOptions struct { User string Password string Address string Port string SSLModeDisable bool }
DBOptions declares options for opening a database connection
type DatabaseManager ¶
type DatabaseManager struct { DB *gorm.DB Upload *models.UploadManager }
func Initialize ¶
func Initialize(cfg *config.TemporalConfig, opts DatabaseOptions) (*DatabaseManager, error)
func (*DatabaseManager) Close ¶
func (dbm *DatabaseManager) Close() error
Close shuts down database connection
func (*DatabaseManager) RunMigrations ¶
func (dbm *DatabaseManager) RunMigrations()
RunMigrations runs all migrations
type DatabaseOptions ¶
Directories ¶
Path | Synopsis |
---|---|
Package models provides the models used by Temporal's databases
|
Package models provides the models used by Temporal's databases |
Package utils implements helpers and utility functions for package database and models
|
Package utils implements helpers and utility functions for package database and models |
Click to show internal directories.
Click to hide internal directories.