Package gavo :: Package grammars :: Module mysqldumpgrammar
[frames] | no frames]

Module mysqldumpgrammar

source code

A q'n'd grammar for reading MySQL dumps of moderate size.

Classes
  RowIterator
An object that encapsulates the a source being parsed by a grammar.
  MySQLDumpGrammar
A grammar pulling information from MySQL dump files.
Functions
 
guessFieldNames(dump)
returns the table name and the column names for the first CREATE TABLE statement in a MySQL dump.
source code
 
makeRecord(fieldNames, fieldValues)
creates a rawdict for fieldValues
source code
Variables
  __package__ = 'gavo.grammars'
Function Details

makeRecord(fieldNames, fieldValues)

source code 

creates a rawdict for fieldValues

This function should undo any quoting introduced by MySQL. It doesn't right now since we're not working from actual docs.