Uses of Annotation Interface
com.google.mu.annotations.TemplateFormatMethod
Package
Description
BigQuery Client Library (requires mug-bigquery artifact)
GoogleSql, SafeQuery
StringFormat, Substring, Optionals and more...
-
Uses of TemplateFormatMethod in com.google.mu.bigquery
Modifier and TypeMethodDescriptionstatic ParameterizedQuery
Returns a query using a compile-time constant query with no parameters.static ParameterizedQuery
Convenience method when you need to create theParameterizedQuery
inline, with both the query template and the arguments.static ParameterizedQuery
ParameterizedQuery.optionally
(String query, Optional<?> arg) An optional query that's only rendered ifarg
is present; otherwise returnsParameterizedQuery.EMPTY
. -
Uses of TemplateFormatMethod in com.google.mu.safesql
Modifier and TypeMethodDescriptionstatic SafeQuery
Much likeSafeQuery.of(java.lang.String, java.lang.Object...)
, but with additional GoogleSQL translation rules.static SafeQuery
Returns a query using a constant query template filled withargs
.static SafeSql
static SafeQuery
SafeQuery.optionally
(String query, Optional<?> arg) An optional query that's only rendered ifarg
is present; otherwise returnsSafeQuery.EMPTY
.static SafeSql
SafeSql.optionally
(String query, Optional<?> param) An optional query that's only rendered ifparam
is present; otherwise returnsSafeSql.EMPTY
.static SafeQuery
An optional query that's only rendered ifcondition
is true; otherwise returnsSafeQuery.EMPTY
.static SafeSql
An optional query that's only rendered ifcondition
is true; otherwise returnsSafeSql.EMPTY
. -
Uses of TemplateFormatMethod in com.google.mu.util