Sha256: d7ba3f1c0aca6051e0a81b5e0e9bb859101dfeb7df99336c9957d5a68aaf7c42

Contents?: true

Size: 460 Bytes

Versions: 8

Compression:

Stored size: 460 Bytes

Contents

grammar SQLDropTable
  include SQLPrimitives
  include SQLRowSupport

  rule drop_table
    "DROP" (temporary)? SPACES "TABLE" SPACES
    table_name
    (restrict / cascade)? {
      def query_type
        :drop_table
      end
      def tree
        {
          :table => table_name.eval
        }
      end
    }
  end

  rule temporary
    SPACES "TEMPORARY"
  end

  rule restrict
    SPACES "RESTRICT"
  end

  rule cascade
    SPACES "CASCADE"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hipster_sql_to_hbase-0.3.29 lib/sql_parser/sql_drop_table.treetop
hipster_sql_to_hbase-0.3.20 lib/sql_parser/sql_drop_table.treetop
hipster_sql_to_hbase-0.3.12 lib/sql_parser/sql_drop_table.treetop
hipster_sql_to_hbase-0.3.2 lib/sql_parser/sql_drop_table.treetop
hipster_sql_to_hbase-0.3.1 lib/sql_parser/sql_drop_table.treetop
hipster_sql_to_hbase-0.3.0 lib/sql_parser/sql_drop_table.treetop
hipster_sql_to_hbase-0.2.2 lib/sql_parser/sql_drop_table.treetop
hipster_sql_to_hbase-0.2.0 lib/sql_parser/sql_drop_table.treetop