FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Functions to bring database schema to a known state. More...
Go to the source code of this file.
Classes | |
class | fo_libschema |
Class to handle database schema. More... | |
Functions | |
ApplySchema ($Filename=NULL, $Debug=false, $Catalog='fossology') | |
Make schema match $Filename. This is a single transaction. More... | |
GetSchema () | |
Load the schema from the db into an array. | |
ExportSchema ($filename=NULL) | |
Export the schema of the connected ($PG_CONN) database to a file in the format readable by GetSchema(). More... | |
MakeFunctions ($Debug) | |
Create any required DB functions. | |
Variables | |
if(empty($dbManager)||!($dbManager instanceof DbManager)) | $libschema = new fo_libschema($dbManager) |
Functions to bring database schema to a known state.
Definition in file libschema.php.
ApplySchema | ( | $Filename = NULL , |
|
$Debug = false , |
|||
$Catalog = 'fossology' |
|||
) |
Make schema match $Filename. This is a single transaction.
string | $Filename | Schema file written by schema-export.php |
bool | $Debug | Turn on debugging (echo sql as it is being executed) |
string | $Catalog | Optional database name |
Definition at line 1101 of file libschema.php.
ExportSchema | ( | $filename = NULL | ) |
Export the schema of the connected ($PG_CONN) database to a file in the format readable by GetSchema().
string | $filename | path to the file to store the schema in. |
Definition at line 1122 of file libschema.php.