Class SpannerStatementParser

java.lang.Object
com.google.cloud.spanner.connection.AbstractStatementParser
com.google.cloud.spanner.connection.SpannerStatementParser

@InternalApi public class SpannerStatementParser extends AbstractStatementParser
  • Constructor Details

    • SpannerStatementParser

      public SpannerStatementParser() throws com.google.cloud.spanner.connection.ClientSideStatementImpl.CompileException
      Throws:
      com.google.cloud.spanner.connection.ClientSideStatementImpl.CompileException
  • Method Details

    • supportsExplain

      protected boolean supportsExplain()
      Indicates whether the parser supports the EXPLAIN clause. The Spanner parser does support it.
      Specified by:
      supportsExplain in class AbstractStatementParser
    • checkReturningClauseInternal

      @InternalApi protected boolean checkReturningClauseInternal(String rawSql)
      Description copied from class: AbstractStatementParser
      Checks if the given SQL string contains a Returning clause. This method is used only in case of a DML statement.
      Specified by:
      checkReturningClauseInternal in class AbstractStatementParser
      Parameters:
      rawSql - The sql string without comments that has to be evaluated.
      Returns:
      A boolean indicating whether the sql string has a Returning clause or not.