database

package
v0.0.0-...-5650b21 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabaseSize

func GetDatabaseSize(dbPath string) (string, error)

GetDatabaseSize returns the size of the database file in a human-readable format

Types

type DB

type DB struct {
	*sql.DB
}

DB wraps the sql.DB connection and provides methods for database operations

func New

func New(dbPath string) (*DB, error)

New creates and returns a new DB instance

func (*DB) Close

func (db *DB) Close() error

Close closes the database connection

Jump to

Keyboard shortcuts

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