Class SpannerStatementParser

    • Constructor Detail

      • SpannerStatementParser

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

      • 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.