Class RBase::Table
In: lib/rbase/table.rb
Parent: Object

Methods

[]   []=   build   close   column   create   create   each   each_with_deleted   load   memo   open   pack  

Attributes

columns  [R] 
count  [R] 
language  [R] 
last_modified_on  [R] 
name  [R] 

Public Class methods

Create new XBase table file. Table file name will be equal to name with ".dbf" suffix.

Allowed options

 * :language - language character set used in database. Can be one of LANGUAGE_* constants

Open table with given name. Table name should be like file name without ".dbf" suffix.

Public Instance methods

[](index)

Alias for load

Create new record, populate it with given attributes

Return instance of RBase::Column for given column name

Create new record, populate it with given attributes and save it

Iterate through all non-deleted records

Iterate through all (even deleted) records

Load record stored in position ‘index‘

Returns instance of MemoFile that is associated with table

Physically remove records that were marked as deleted from file.

[Validate]