Ferreteria/v2/usage/db

From Woozle Writes Code
< Ferreteria‎ | v2‎ | usage
Revision as of 11:13, 15 September 2017 by htyp>Woozle (→‎Files: updated)
Jump to navigation Jump to search

About

Databases in Ferreteria are managed through several sets of classes that work together. I am in the process of rewriting this module from scratch; information about the existing code is in /v1.

Rules

  • Each Connection should be requested from the static DBO Factory class by passing it a connection spec.
  • The Factory looks up which Connection class is needed for the type specified in the connection spec.
  • The Factory creates the appropriate Connection object, passes it the rest of the spec to initialize it, and returns it to the caller.

Files

Core classes:

Helpers:

This is only a partial list, but includes some of the most heavily-used files.

Classes

primary

helpers