Package com.google.mu.safesql
Class GoogleSql
java.lang.Object
com.google.mu.safesql.GoogleSql
Facade class providing
SafeQuery
templates for GoogleSQL.- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic SafeQuery
Much likeSafeQuery.of(java.lang.String)
, but with additional GoogleSQL translation rules.static StringFormat.Template
<SafeQuery> Much likeSafeQuery.template(java.lang.String)
, but with additional GoogleSQL translation rules.
-
Method Details
-
from
@TemplateFormatMethod public static SafeQuery from(@CompileTimeConstant @TemplateString String queryTemplate, Object... args) Much likeSafeQuery.of(java.lang.String)
, but with additional GoogleSQL translation rules.Specifically,
Instant
are translated to `TIMESTAMP()` GoogleSql function,ZonedDateTime
are translated to `DATETIME()` GoogleSql function, andLocalDate
are translated to `DATE()` GoogleSql function.- Since:
- 8.0
-
template
Much likeSafeQuery.template(java.lang.String)
, but with additional GoogleSQL translation rules.Specifically,
Instant
are translated to `TIMESTAMP()` GoogleSql function,ZonedDateTime
are translated to `DATETIME()` GoogleSql function, andLocalDate
are translated to `DATE()` GoogleSql function.
-