- * the singleton object.
- *
- * @return Schema the (single) Schema object
- */
-
- static function get()
- {
- $type = common_config('db', 'type');
- if (empty(self::$_single)) {
- include "lib/schema.{$type}.php";
- $class = $type.='Schema';
- self::$_single = new $class();
- }
- return self::$_single;
- }
-
- /**
- * Returns a TableDef object for the table
- * in the schema with the given name.
- *
- * Throws an exception if the table is not found.
- *
- * @param string $name Name of the table to get