Package dbf :: Module tables :: Class Index
[hide private]

Class Index

source code

object --+
         |
        Index

Nested Classes [hide private]
  IndexIterator
returns records using this index
Instance Methods [hide private]
 
__init__(yo, table, key, field_names=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(yo, record) source code
 
__contains__(yo, match) source code
 
__getitem__(yo, key) source code
 
__enter__(yo) source code
 
__exit__(yo, *exc_info) source code
 
__iter__(yo) source code
 
__len__(yo) source code
 
_partial_match(yo, target, match) source code
 
_purge(yo, rec_num) source code
 
_search(yo, match, lo=0, hi=None) source code
 
clear(yo)
removes all entries from index
source code
 
close(yo) source code
 
find(yo, match, partial=False)
returns numeric index of (partial) match, or -1
source code
 
find_index(yo, match)
returns numeric index of either (partial) match, or position of where match would be
source code
 
index(yo, match, partial=False)
returns numeric index of (partial) match, or raises ValueError
source code
 
reindex(yo)
reindexes all records
source code
 
query(yo, sql_command=None, python=None)
recognized sql commands are SELECT, UPDATE, REPLACE, INSERT, DELETE, and RECALL
source code
 
search(yo, match, partial=False)
returns dbf.List of all (partially) matching records
source code

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

Class Methods [hide private]
 
from_file(cls, table, index_file) source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(yo, table, key, field_names=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)