Sha256: 18b5cebfb204937ed2df1b0b40e033dc8456e2e2b0effa24e351a9890abb4291

Contents?: true

Size: 535 Bytes

Versions: 8

Compression:

Stored size: 535 Bytes

Contents

grammar SQLShowCreate
  include SQLPrimitives
  include SQLRowSupport
  
  rule show_create
    "SHOW" SPACES "CREATE" SPACES table_or_db SPACES table_name {
      def query_type
        :show
      end
      
      def tree
        {
          :show => "create",
          :table_or_db => table_or_db.eval,
          :name => table_name.eval
        }
      end
    }
  end
  
  rule table_or_db
    "TABLE" {
      def eval
        "table"
      end
    }
    / 
    "DATABASE" {
      def eval
        "db"
      end
    }
  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_show_create.treetop
hipster_sql_to_hbase-0.3.20 lib/sql_parser/sql_show_create.treetop
hipster_sql_to_hbase-0.3.12 lib/sql_parser/sql_show_create.treetop
hipster_sql_to_hbase-0.3.2 lib/sql_parser/sql_show_create.treetop
hipster_sql_to_hbase-0.3.1 lib/sql_parser/sql_show_create.treetop
hipster_sql_to_hbase-0.3.0 lib/sql_parser/sql_show_create.treetop
hipster_sql_to_hbase-0.2.2 lib/sql_parser/sql_show_create.treetop
hipster_sql_to_hbase-0.2.0 lib/sql_parser/sql_show_create.treetop