database

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDefaultVirtualServer

func EnsureDefaultVirtualServer(db *gorm.DB, name, host string, port, maxUsers int, welcomeText string) error

EnsureDefaultVirtualServer ensures virtual server 1 exists. Creates it with the given params if not found. Returns an error only if the database call fails.

func Open

func Open(path string) (*gorm.DB, error)

Open opens a SQLite connection and runs migrations.

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