Package com.google.mu.safesql
package com.google.mu.safesql
GoogleSql, SafeQuery
Package Specification
The code is developed and tested under Java 8.0.-
ClassDescriptionFacade class providing
SafeQuery
templates for GoogleSQL.A piece of provably-safe (from SQL injection) query string constructed by the combination of a compile-time string constant, other SafeQuery, safe literal values (booleans, enum constant names, numbers etc.), and/or mandatorily-quoted, auto-escaped string values.An SPI class for subclasses to provide additional translation from placeholder values to safe query strings.An injection-safe parameterized SQL, constructed using compile-time enforced templates and can be used tocreate
PreparedStatement
.A simple unchecked wrapper ofSQLException
.