Ferreteria/v2/usage/db: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v2‎ | usage
Jump to navigation Jump to search
(v2, first draft)
m (Woozle moved page User:Woozle/Ferreteria/pieces/db to Ferreteria/pieces/db: is finished enough)
(No difference)

Revision as of 00:17, 27 January 2017

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

These have not yet been committed to GitHub:

Classes

primary

helpers