database

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDatabaseURL

func IsDatabaseURL(str string) bool

IsDatabaseURL checks if a string is a database URL

func NewDBHandler

func NewDBHandler(connInfo ConnectionInfo, bar *progressbar.ProgressBar, storage storage.Storage, limitLines int, collection string) filehandler.FileHandler

NewDBHandler creates a new database file handler

Types

type ConnectionInfo

type ConnectionInfo struct {
	Type     dbconnector.DBType
	Host     string
	Port     int
	User     string
	Password string
	Database string
	Table    string
	SSLMode  string
}

ConnectionInfo holds parsed connection information

func ParseDatabaseURL

func ParseDatabaseURL(urlStr string) (*ConnectionInfo, error)

ParseDatabaseURL parses a database URL and returns connection info Format: postgres://user:password@host:port/database/table

mysql://user:password@host:port/database/table

Jump to

Keyboard shortcuts

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