Freeside:1.7:Documentation:Developer/FS/Schema

From Freeside
< Freeside:1.7:Documentation:Developer‎ | FS
Revision as of 18:01, 3 October 2007 by Ivan (talk | contribs) (import from POD)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NAME

FS::Schema - Freeside database schema

SYNOPSYS

   use FS::Schema qw(dbdef dbdef_dist reload_dbdef);

   $dbdef = reload_dbdef;
   $dbdef = reload_dbdef "/non/standard/filename";
   $dbdef = dbdef;
   $dbdef_dist = dbdef_dist;

DESCRIPTION

This class represents the database schema.

METHODS

reload_dbdef([FILENAME])
Load a database definition (see DBIx::DBSchema), optionally from a non-default filename. This command is executed at startup unless $FS::Schema::setup_hack is true. Returns a DBIx::DBSchema object.
dbdef
Returns the current database definition (represents the current database, assuming it is up-to-date). See DBIx::DBSchema.
dbdef_dist [ OPTION => VALUE ... ]
Returns the current canoical database definition as defined in this file.

BUGS

SEE ALSO

DBIx::DBSchema