|
Public Member Functions |
| | dbConnect_ram (bool isTemporary=true) |
| virtual | ~dbConnect_ram () |
| virtual void | newConnection (const char *connectionName=0) |
| virtual void | openConnection (const char *connectionName=0) |
| virtual bool | openOrCreateConnection (const char *connectionName=0) |
| virtual void | writeOOFSchema () |
| virtual void | newConnection (const FSSpec &) |
| virtual void | openConnection (const FSSpec &) |
| virtual void | close () |
| virtual void | exitLocking () |
| virtual void | enterWriteLocking () |
| virtual void | enterReadLocking () |
| virtual oofString | name () const |
| virtual void | deleteStorage () |
| virtual bool | usesSeparateStorageFiles () const |
| void | gotoDatabaseDir () const |
| oofDirectory * | databaseDirectory () const |
| const oofString & | connectionName () const |
| void | attachTable (dbTable *) |
| dbTable * | table (unsigned int) const |
| dbTable * | table (const char *) |
| unsigned int | numTables () const |
| bool | isOpen () const |
| bool | inDeclarativePhase () const |
| | Connection has been declared but not opened or created.
|
| virtual void | describe (std::ostream &) const |
| | Provide human-readable information about object.
|
| virtual void | readOOFSchema (const oofString &schemaFileName) |
| | Reads & parses oofSchema from the file schemaFileName.
|
| virtual void | stats (std::ostream &) |
| void | dumpData (std::ostream &) |
| void | extract (std::ostream &os) |
| void | copyAllFrom (dbConnect *) |
| void | deleteAll () |
| void | generateTestData (unsigned long maxRecs=10000, bool generateRandom=true, unsigned long seedOrCount=0) |
| void | schemaFileExt (const oofString &) |
| void | suspendSorting () const |
| void | resumeSorting () const |
| oofWordParser * | getDefaultWordParser () |
| void | setDefaultWordParser (oofWordParser *inParser) |
| bool | hidden () const |
| void | hide (bool hideIt=true) |
Static Public Member Functions |
| OOF_tableBackend * | justMakeTableBackend (dbTable *) |
| dbConnect * | currentlyConstructing () |
| bool | fileExists (const char *fName) |
| bool | underConstruction () |
| void | raise (std::ostream &, bool terminateAfterMsg=true) |
| void | raise (const char *, bool terminateAfterMsg=true) |
| void | truncateTrailingSpaces (bool willTruncate=true) |
| bool | willTruncateTrailingSpaces () |
Protected Types |
| enum | connectionFileStateT {
eIdle = 0,
eStart = 1,
eOpenedFile = 2,
eCreatedFile = 4,
eInvalidlyOpenInCreation = 8,
eInvalidlyCreationInOpen = 16
} |
Protected Member Functions |
| void | SetupConnection (const OOF_String &connectionName) |
| virtual OOF_tableBackend * | MakeTableBackend (dbTable *) |
| void | MakeAllTablesValid () const |
| | Final step in construction, can use tables against database after this.
|
| void | InitOpenOrCreateState () |
| void | OpenOrCreateStateTransition (bool inOpenedOrCreated) |
| | Manage state transitions for FinishOpenOrCreateConnection.
|
| virtual void | WriteOOFSchemaFile () |
| | Write the oofschema out to the schema file.
|
| virtual oofString | MakeSchemaFileName () |
| | produce a file name for schema file.
|
| oofString | MakeOOFSchemaString () |
| | Produce a string containing the oofschema with the length of the schema string aphended to the end.
|
Protected Attributes |
| OOF_Dictionary | mTables |
| oofString | mConnectionName |
| oofString | mSchemaFileName |
| bool | mOpen |
| bool | mTempDatabase |
| bool | mInDeclarativePhase |
| oofWordParser * | mDefaultPrototypeParser |
| oofDirectory * | mDatabaseDir |
| connectionFileStateT | mFileState |
| bool | mHidden |
Static Protected Attributes |
| dbConnect * | sCurrentlyConstructing |
| | this static gets zeroed in dbTable::postCloneTableCleanup() this is how we avoid passing dbTable pointers around all the time when creating fields particularly in user constructors when it would clutter things up a LOT!
|
| bool | sTruncateTrailingSpaces = false |
| oofString | sSchemaFileExt = "osc" |