EvEmu
0.8.4
11 September 2021
|
Python object SQL dumper. More...
#include "RowsetReader.h"
Public Member Functions | |
SetSQLDumper (const char *table, const char *keyField, FILE *out) | |
bool | VisitTuple (const PyTuple *rep) |
the nested types Visitor More... | |
bool | VisitObject (const PyObject *rep) |
Object type visitor. More... | |
![]() | |
virtual | ~PyVisitor () |
virtual bool | VisitInteger (const PyInt *rep) |
primitive data visitors More... | |
virtual bool | VisitLong (const PyLong *rep) |
virtual bool | VisitReal (const PyFloat *rep) |
virtual bool | VisitBoolean (const PyBool *rep) |
virtual bool | VisitNone (const PyNone *rep) |
virtual bool | VisitBuffer (const PyBuffer *rep) |
virtual bool | VisitString (const PyString *rep) |
virtual bool | VisitWString (const PyWString *rep) |
virtual bool | VisitToken (const PyToken *rep) |
virtual bool | VisitList (const PyList *rep) |
virtual bool | VisitDict (const PyDict *rep) |
virtual bool | VisitObjectEx (const PyObjectEx *rep) |
virtual bool | VisitPackedRow (const PyPackedRow *rep) |
PackedRow type visitor. More... | |
virtual bool | VisitSubStruct (const PySubStruct *rep) |
wrapper types Visitor More... | |
virtual bool | VisitSubStream (const PySubStream *rep) |
virtual bool | VisitChecksumedStream (const PyChecksumedStream *rep) |
Protected Attributes | |
const std::string | mTable |
const std::string | mKeyField |
FILE *const | mOut |
Python object SQL dumper.
Scans visited PyRep for any dumpable rowsets or tuplesets; if any is found, it's dumped using RowsetToSQL.
Definition at line 191 of file RowsetReader.h.
SetSQLDumper::SetSQLDumper | ( | const char * | table, |
const char * | keyField, | ||
FILE * | out | ||
) |
Definition at line 247 of file RowsetReader.cpp.
|
virtual |
Object type visitor.
Reimplemented from PyVisitor.
Definition at line 311 of file RowsetReader.cpp.
References PyString::content(), mKeyField, mOut, mTable, sLog, PyObject::type(), and PyVisitor::VisitObject().
|
virtual |
the nested types Visitor
Reimplemented from PyVisitor.
Definition at line 254 of file RowsetReader.cpp.
References PyRep::AsList(), PyList::begin(), PyList::end(), PyTuple::GetItem(), PyRep::IsList(), mKeyField, mOut, mTable, PyTuple::size(), sLog, and PyVisitor::VisitTuple().
|
protected |
Definition at line 203 of file RowsetReader.h.
Referenced by VisitObject(), and VisitTuple().
|
protected |
Definition at line 204 of file RowsetReader.h.
Referenced by VisitObject(), and VisitTuple().
|
protected |
Definition at line 202 of file RowsetReader.h.
Referenced by VisitObject(), and VisitTuple().