sqlite

package
v0.0.0-...-5966a5d Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeDB

func InitializeDB(cfg config.ServerConfig) (*sql.DB, error)

func OpenDB

func OpenDB(cfg config.ServerConfig) (*sql.DB, *sql.DB, error)

Types

type Repositories

type Repositories struct {
	UserRepo         user.Repository
	CategoryRepo     category.Repository
	TopicRepo        topic.Repository
	CommentRepo      comment.Repository
	VoteRepo         vote.Repository
	NotificationRepo notification.Repository
	OauthRepo        oauth.Repository
	ActivityRepo     activity.Repository
}

func NewRepositories

func NewRepositories(db *sql.DB) *Repositories

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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