Package dbf :: Module ver_2 :: Class FpTable
[hide private]
[frames] | no frames]

Class FpTable

source code

 object --+        
          |        
_Navigation --+    
              |    
          Table --+
                  |
                 FpTable
Known Subclasses:

Provides an interface for working with FoxPro 2 tables

Nested Classes [hide private]
  _memoClass
Visual Foxpro 6 specific

Inherited from Table (private): _Indexen, _MetaData, _Table, _TableHeader

Instance Methods [hide private]
 
_field_types()
Lives in the class, and on first access calls the supplied factory and maps the result into the instance it was called on
source code
 
_check_memo_integrity(self)
checks memo file for problems
source code
 
_initialize_fields(self)
builds the FieldList of names, types, and descriptions
source code

Inherited from Table: __contains__, __enter__, __exit__, __getattr__, __getitem__, __init__, __iter__, __len__, __nonzero__, __repr__, __str__, add_fields, allow_nulls, append, close, create_backup, create_index, create_template, delete_fields, disallow_nulls, field_info, index, new, nullable_field, open, pack, query, reindex, rename_field, resize_field, structure, zap

Inherited from _Navigation: bottom, goto, skip, top

Inherited from _Navigation (private): _get_index

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]
 
_pack_date(date)
Returns a group of three bytes, in integer form, of the date
source code
 
_unpack_date(bytestr)
Returns a Date() of the packed three-byte date passed in
source code

Inherited from Table: __new__

Class Variables [hide private]
  _version = 'Foxpro'
  _versionabbr = 'fp'
  _memoext = '.fpt'
  _yesMemoMask = '\xf5'
  _noMemoMask = '\x03'
  _binary_types = ('G', 'P')
  _character_types = 'C', 'D', 'F', 'L', 'M', 'N'
  _currency_types = tuple()
  _date_types = 'D',
  _datetime_types = tuple()
  _fixed_types = ('D', 'G', 'L', 'M', 'P')
  _logical_types = 'L',
  _memo_types = ('G', 'M', 'P')
  _numeric_types = ('F', 'N')
  _text_types = ('C', 'M')
  _variable_types = ('C', 'F', 'N')
  _supported_tables = ('\x03', '\xf5')
  _dbfTableHeader = '0\x00\x00\x00\x00\x00\x00\x00(\x01\x01\x00\...
  _dbfTableHeaderExtra = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x...

Inherited from Table: backup

Inherited from _Navigation (private): _index

Properties [hide private]

Inherited from Table: codepage, field_count, field_names, filename, last_update, memoname, record_length, status, supported_tables, version

Inherited from _Navigation: bof, current, current_record, eof, first_record, last_record, next_record, prev_record

Inherited from object: __class__

Method Details [hide private]

_field_types()

source code 

Lives in the class, and on first access calls the supplied factory and maps the result into the instance it was called on

Decorators:
  • @MutableDefault
Overrides: Table._field_types

_check_memo_integrity(self)

source code 

checks memo file for problems

Overrides: Table._check_memo_integrity
(inherited documentation)

_initialize_fields(self)

source code 

builds the FieldList of names, types, and descriptions

Overrides: Table._initialize_fields

_pack_date(date)
Static Method

source code 

Returns a group of three bytes, in integer form, of the date

Overrides: Table._pack_date

_unpack_date(bytestr)
Static Method

source code 

Returns a Date() of the packed three-byte date passed in

Overrides: Table._unpack_date

Class Variable Details [hide private]

_dbfTableHeader

Value:
'0\x00\x00\x00\x00\x00\x00\x00(\x01\x01\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00'

_dbfTableHeaderExtra

Value:
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
...