package
0.0.0-20240727104708-c2d1215a6a24
Repository: https://github.com/google/go-safeweb.git
Documentation: pkg.go.dev
# Packages
Package legacyconversions provides functions to create values of package safesql types from plain strings.
Package uncheckedconversions provides functions to create values of package safesql types from plain strings.
# Functions
Drivers is a tiny wrapper for https://pkg.go.dev/sql#Drivers.
New constructs a TrustedSQLString from a compile-time constant string.
NewFromUint64 constructs a TrustedSQLString from a uint64.
Open is a tiny wrapper for https://pkg.go.dev/sql#Open.
OpenDB is a tiny wrapper for https://pkg.go.dev/sql#OpenDB.
Register is a tiny wrapper for https://pkg.go.dev/sql#Register.
TrustedSQLStringConcat concatenates the given trusted SQL strings into a trusted string.
TrustedSQLStringJoin joins the given trusted SQL with the given separator the same way strings.Join would.
TrustedSQLStringSplit functions as strings.Split but for TrustedSQLStrings.
# Structs
Conn behaves as the standard SQL package one, with the exception that it does not implement the `Raw` method for security reasons.
DB behaves as the standard SQL package one, with the exception that it does not implement the `Driver` method for security reasons.
TrustedSQLString is a string representing a SQL query that is known to be safe and not contain potentially malicious inputs.
Tx is a tiny wrapper for https://pkg.go.dev/sql#Tx.
# Type aliases
ColumnType is a tiny wrapper for https://pkg.go.dev/sql#ColumnType.
DBStats is a tiny wrapper for https://pkg.go.dev/sql#DBStats.
IsolationLevel is a tiny wrapper for https://pkg.go.dev/sql#IsolationLevel.
NamedArg is a tiny wrapper for https://pkg.go.dev/sql#NamedArg.
NullBool is a tiny wrapper for https://pkg.go.dev/sql#NullBool.
NullFloat64 is a tiny wrapper for https://pkg.go.dev/sql#NullFloat64.
NullInt32 is a tiny wrapper for https://pkg.go.dev/sql#NullInt32.
NullInt64 is a tiny wrapper for https://pkg.go.dev/sql#NullInt64.
NullString is a tiny wrapper for https://pkg.go.dev/sql#NullString.
NullTime is a tiny wrapper for https://pkg.go.dev/sql#NullTime.
Out is a tiny wrapper for https://pkg.go.dev/sql#Out.
RawBytes is a tiny wrapper for https://pkg.go.dev/sql#RawBytes.
Result is a tiny wrapper for https://pkg.go.dev/sql#Result.
Row is a tiny wrapper for https://pkg.go.dev/sql#Row.
Rows is a tiny wrapper for https://pkg.go.dev/sql#Rows.
Scanner is a tiny wrapper for https://pkg.go.dev/sql#Scanner.
Stmt is a tiny wrapper for https://pkg.go.dev/sql#Stmt.
TxOptions is a tiny wrapper for https://pkg.go.dev/sql#TxOptions.