utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB(cfg *config.ConnectionConfig) (*sql.DB, error)

ConnectDB opens a database connection, pings it, and sets sensible defaults.

func FormatBytes

func FormatBytes(bytes uint64) string

FormatBytes converts bytes to a human-readable string (e.g., "12.5 MB")

func ListTablesQuery

func ListTablesQuery(dbType config.DBType) string

ListTablesQuery returns the appropriate SQL to list user tables for a DB type

Types

This section is empty.

Jump to

Keyboard shortcuts

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