legacyconversions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package legacyconversions can be used to atomically switch to safesql. This allows to easily automate the rewrite of all uses of database/sql into safesql. After that step is done, imports of database/sql should be banned, and legacyconversions gradually removed. An allowlist of legacyconversions should be created to make sure no new ones are added.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnsafeSQLString

func UnsafeSQLString(trusted string) safesql.String

UnsafeSQLString riskily promotes the given string to a trusted string. Uses of this function should only be introduced to begin a migration to safesql and should eventually be removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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