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

Class _TableHeader

source code

object --+
         |
        Table._TableHeader
Known Subclasses:

represents the data block that defines a tables type and layout

Instance Methods [hide private]
 
__init__(self, data, pack_date, unpack_date)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
codepage(self, cp=None)
get/set code page of table
source code

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

Properties [hide private]
  data
main data structure
  extra
extra dbf info (located after headers, before data records)
  field_count
number of fields (read-only)
  fields
field block structure
  record_count
number of records (maximum 16,777,215)
  record_length
length of a record (read_only) (max of 65,535)
  start
starting position of first record in file (must be within first 64K)
  update
date of last table modification (read-only)
  version
dbf version

Inherited from object: __class__

Method Details [hide private]

__init__(self, data, pack_date, unpack_date)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

data

main data structure

Get Method:
unreachable.data(self) - main data structure
Set Method:
unreachable.data(self, bytes)

extra

extra dbf info (located after headers, before data records)

Get Method:
unreachable.extra(self) - extra dbf info (located after headers, before data records)
Set Method:
unreachable.extra(self, data)

field_count

number of fields (read-only)

Get Method:
unreachable.field_count(self) - number of fields (read-only)

fields

field block structure

Get Method:
unreachable.fields(self) - field block structure
Set Method:
unreachable.fields(self, block)

record_count

number of records (maximum 16,777,215)

Get Method:
unreachable.record_count(self) - number of records (maximum 16,777,215)
Set Method:
unreachable.record_count(self, count)

record_length

length of a record (read_only) (max of 65,535)

Get Method:
unreachable.record_length(self) - length of a record (read_only) (max of 65,535)
Set Method:
unreachable.record_length(self, length) - to support Clipper large Character fields

start

starting position of first record in file (must be within first 64K)

Get Method:
unreachable.start(self) - starting position of first record in file (must be within first 64K)
Set Method:
unreachable.start(self, pos)

update

date of last table modification (read-only)

Get Method:
unreachable.update(self) - date of last table modification (read-only)

version

dbf version

Get Method:
unreachable.version(self) - dbf version
Set Method:
unreachable.version(self, ver)