Skip to content

Commit

Permalink
Prepare for 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Nov 30, 2023
1 parent c29cd43 commit 2f407aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mug-guava/src/main/java/com/google/mu/safesql/GoogleSql.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
import com.google.errorprone.annotations.CompileTimeConstant;
import com.google.mu.util.StringFormat;

/** Facade class providing {@link SafeQuery} templates for GoogleSQL. */
/**
* Facade class providing {@link SafeQuery} templates for GoogleSQL.
*
* @since 7.0
*/
public final class GoogleSql {
private static final DateTimeFormatter LOCAL_DATE_TIME_FORMATTER =
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss[.SSSSSS]");
Expand All @@ -24,7 +28,7 @@ public final class GoogleSql {

/**
* Much like {@link SafeQuery#template}, but with additional GoogleSQL translation rules.
*
*
* <p>Specifically, {@link Instant} are translated to `TIMESTAMP()` GoogleSql function,
* {@link ZonedDateTime} are translated to `DATETIME()` GoogleSql function,
* and {@link LocalDate} are translated to `DATE()` GoogleSql function.
Expand Down
2 changes: 2 additions & 0 deletions mug-guava/src/main/java/com/google/mu/safesql/SafeQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
* StringFormat.To#with} to compose larger queries.
*
* <p>This class is Android and J2CL compatible.
*
* @since 7.0
*/
@Immutable
public final class SafeQuery {
Expand Down

0 comments on commit 2f407aa

Please sign in to comment.