Documentation
¶
Index ¶
- func DumpSchema(driver string, dsn string, outputFile string) error
- func SnakeCase(text string) string
- type ConnectionParams
- type DB
- type DB_Row
- type DB_Rows
- type Disk
- type DiskImpl
- func (d *DiskImpl) Create(file_path string) error
- func (d *DiskImpl) List(dir string) ([]string, error)
- func (d *DiskImpl) Read(file_path string) (string, error)
- func (r *DiskImpl) SearchFileInParentDirectories(file_name string) (string, error)
- func (r *DiskImpl) Write(file_path string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionParams ¶
type DB ¶
type DB interface {
Query(query string, args ...any) (*sql.Rows, error)
Exec(query string, args ...any) (sql.Result, error)
QueryRow(query string, args ...any) *sql.Row
Close() error
}
func ConnectDB ¶
func ConnectDB(p ConnectionParams) (DB, error)
Click to show internal directories.
Click to hide internal directories.