safesql

package
v0.0.0-...-ecb2564 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func Open

func Open(driverName, dataSourceName string) (*DB, error)

func (*DB) ExecContext

func (db *DB) ExecContext(ctx context.Context,
	query TrustedSQL, args ...any) (Result, error)

func (*DB) QueryContext

func (db *DB) QueryContext(ctx context.Context, query TrustedSQL, args ...any) (*sql.Rows, error)

type Result

type Result = sql.Result

type Rows

type Rows = sql.Rows

type TrustedSQL

type TrustedSQL struct {
	// contains filtered or unexported fields
}

func New

func New(text compileTimeConstant) TrustedSQL

Directories

Path Synopsis
internal
raw

Jump to

Keyboard shortcuts

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