Class GoogleSql
java.lang.Object
com.google.guava.labs.safesql.GoogleSql
-
Method Summary
Modifier and TypeMethodDescriptionstatic SafeQuery
Deprecated.Much likeSafeQuery.of(java.lang.String, java.lang.Object...)
, but with additional GoogleSQL translation rules.static StringFormat.Template
<SafeQuery> Deprecated.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) Deprecated.Much likeSafeQuery.of(java.lang.String, java.lang.Object...)
, 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
Deprecated.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.
-
SafeSql
to work with JDBC