Sha256: 2adefac9fb0c0bfdf34515b971ba6df7eb258813a33b20e5a1e14d7a068d0d5c

Contents?: true

Size: 481 Bytes

Versions: 6

Compression:

Stored size: 481 Bytes

Contents

grammar SQLShowTables
  include SQLPrimitives
  include SQLRowSupport
  include SQLWhereCondition

  rule show_tables
    "SHOW" SPACE (full)? "TABLES" from_table?
    (like_pattern / (SPACE where_condition))? {
      def eval
        Expressions::TableDisplayer.new(Guillotine::DataStore)
      end
    }
  end

  rule full
    "FULL" SPACE
  end

  rule from_table
    SPACE "FROM" SPACE table_name
  end

  rule like_pattern
    SPACE "LIKE" SPACE single_quoted_string
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hipster_sql_to_hbase-0.1.7 lib/sql_parser/sql_show_tables.treetop
hipster_sql_to_hbase-0.1.6 lib/sql_parser/sql_show_tables.treetop
hipster_sql_to_hbase-0.1.5 lib/sql_parser/sql_show_tables.treetop
hipster_sql_to_hbase-0.1.4 lib/sql_parser/sql_show_tables.treetop
hipster_sql_to_hbase-0.1.3 lib/sql_parser/sql_show_tables.treetop
hipster_sql_to_hbase-0.1.2 lib/sql_parser/sql_show_tables.treetop