Categorygithub.com/programmfabrik/sqlpro
modulepackage
0.0.0-20250218141347-1144634b92ee
Repository: https://github.com/programmfabrik/sqlpro.git
Documentation: pkg.go.dev

# README

go-sqlpro

WIP

This package is under active development and work-in-progress.

Query(target interface{}, query string, args...)

If you want to insert a custom type (e.g. a struct) into the db your type needs to fullfill follwing interface functions for (un-)marshalling from/to the database.

Marshalling to DB

func (f Metadata) Value() (driver.Value, error)

Unmarshalling from DB

func (f *Metadata) Scan(v interface{}) error`

json is supported as tag!

# Functions

NewSqlPro returns a wrapped database handle providing access to the sql pro functions.
Open opens a database connection and returns an sqlpro wrap handle.
Scan reads data from the given rows into the target.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The driver strings must match the driver from the stdlib.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author