Documentation ¶
Index ¶
- type HarmonyDB
- func (db *HarmonyDB) Close()
- func (db *HarmonyDB) Exec(ctx context.Context, sql string, arguments ...any) (count int, err error)
- func (db *HarmonyDB) Query(ctx context.Context, sql string, arguments ...any) (*Query, error)
- func (db *HarmonyDB) QueryRow(ctx context.Context, sql string, arguments ...any) Row
- func (db *HarmonyDB) Select(ctx context.Context, sliceOfStructPtr any, sql string, arguments ...any) error
- type Qry
- type Query
- type Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HarmonyDB ¶
type HarmonyDB struct {
// contains filtered or unexported fields
}
func NewHarmonyDB ¶
NewHarmonyDB creates a new HarmonyDB instance. The url parameter should be a postgres connection string. "postgres://username:password@localhost:5433/database_name?search_path=curio"
Click to show internal directories.
Click to hide internal directories.