ffi

package
v0.0.0-...-abed37e Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package ffi bridges Ard lists and row values to database/sql while Ard retains native *sql.DB and *sql.Tx handles. Pure-Go drivers are registered here so compiled binaries can remain CGO-free.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecDBHandle

func ExecDBHandle(db *sql.DB, query string, args []any) error

ExecDBHandle and QueryDBHandle bridge Ard lists to database/sql's variadic argument API while allowing Ard to retain the native *sql.DB handle.

func ExecTxHandle

func ExecTxHandle(tx *sql.Tx, query string, args []any) error

ExecTxHandle and QueryTxHandle are the transaction equivalents of the native database handle bridges above.

func QueryDBHandle

func QueryDBHandle(db *sql.DB, query string, args []any) ([]any, error)

func QueryTxHandle

func QueryTxHandle(tx *sql.Tx, query string, args []any) ([]any, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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