Package gavo :: Package rsc :: Module common
[frames] | no frames]

Module common

source code

Helpers for resource creation.

Classes
  DBTableError
is raised when a manipulation of an on-disk table fails.
  FLUSH
A sentinel that grammars can yield to flush out records to the Database.
  ParamMixin
A mixin providing param processing.
  ParseOptions
see `function getParseOptions`_ .
Functions
 
getParseOptions(validateRows=True, doTableUpdates=False, batchSize=1024, maxRows=None, keepGoing=False, dropIndices=False, dumpRows=False, metaOnly=False, buildDependencies=True, systemImport=False, commitAfterMeta=False, dumpIngestees=False)
returns an object with some attributes set.
source code
Variables
  parseValidating = <ParseOptions validateRows=True maxRows=None...
  parseNonValidating = <ParseOptions validateRows=False maxRows=...
  __package__ = 'gavo.rsc'
Function Details

getParseOptions(validateRows=True, doTableUpdates=False, batchSize=1024, maxRows=None, keepGoing=False, dropIndices=False, dumpRows=False, metaOnly=False, buildDependencies=True, systemImport=False, commitAfterMeta=False, dumpIngestees=False)

source code 

returns an object with some attributes set.

This object is used in the parsing code in dddef. It's a standin for the the command line options for tables created internally and should have all attributes that the parsing infrastructure might want from the optparse object.

So, just configure what you want via keyword arguments or use the prebuilt objects parseValidating and and parseNonValidating below.

See commandline.py for the meaning of the attributes.

The exception is buildDependencies. This is true for most internal builds of data (and thus here), but false when we need to manually control when dependencies are built, as in user.importing and while building the dependencies themselves.


Variables Details

parseValidating

Value:
<ParseOptions validateRows=True maxRows=None keepGoing=False>

parseNonValidating

Value:
<ParseOptions validateRows=False maxRows=None keepGoing=False>