database

package
v0.0.0-...-f1b5f16 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 7 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, logger *log.Logger, dbFile 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