Module: TableQuery

Defined in:
lib/table-query.rb,
lib/table-query/type.rb,
lib/table-query/field.rb,
lib/table-query/query.rb,
lib/table-query/table.rb,
lib/table-query/version.rb,
lib/table-query/query-schema.rb,
lib/table-query/table-schema.rb,
lib/table-query/schema-loader.rb

Overview

TableQuery provides table definition schema and the query. You can get table data by easy way.

Defined Under Namespace

Classes: Field, Query, QuerySchema, SchemaLoader, Table, TableSchema, Type

Constant Summary collapse

STANDARD_TYPES =

standard type list that includes

  • bool

  • int

  • float

  • string

  • symbol

  • time

  • date

[
  Type::BOOL,
  Type::INT,
  Type::FLOAT,
  Type::STRING,
  Type::SYMBOL,
  Type::TIME,
  Type::DATE
]
VERSION =

version number

"0.1.0"

Class Method Summary collapse

Class Method Details

.table(path, options = {}) ⇒ Table

Create a table.

Parameters:

  • path (String)

    table data file path

  • options (Hash) (defaults to: {})

    table options

Returns:



23
24
25
# File 'lib/table-query.rb', line 23

def self.table(path, options={})
  Table.new(path, options)
end