Class GoogleSql
java.lang.Object
com.google.guava.labs.safesql.GoogleSql
-
Method Summary
Modifier and TypeMethodDescriptionstatic SafeQueryDeprecated.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,
Instantare translated to `TIMESTAMP()` GoogleSql function,ZonedDateTimeare translated to `DATETIME()` GoogleSql function, andLocalDateare translated to `DATE()` GoogleSql function.- Since:
- 8.0
-
template
Deprecated.Much likeSafeQuery.template(java.lang.String), but with additional GoogleSQL translation rules.Specifically,
Instantare translated to `TIMESTAMP()` GoogleSql function,ZonedDateTimeare translated to `DATETIME()` GoogleSql function, andLocalDateare translated to `DATE()` GoogleSql function.
-
SafeSqlto work with JDBC