database

package
v0.0.0-...-19a1b97 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package database handles connections to the database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, dbName, user, password string) (*gorm.DB, error)

Connect creates a connection to the database.

func LeaveChannel

func LeaveChannel(db *gorm.DB, platformName, channel string) error

func Migrate

func Migrate(db *gorm.DB) error

Migrate performs GORM auto-migrations for all data models.

Types

This section is empty.

Directories

Path Synopsis
Package databasetest provides utilities for database testing.
Package databasetest provides utilities for database testing.
Package models defines database data models.
Package models defines database data models.

Jump to

Keyboard shortcuts

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