Jet\DataModel_Helper

A class that is used by Jet Studio and also by CLI tools to help with creating database tables, or updating them, based on the definition.

In fact, it is a simple facade.

Overview of methods

Method Meaning of
public static getCreateCommand(
string $class
) : string
Returns a command to create a database table for the given class - usually SQL code.
public static create(
string $class
) : void
Creates a database table of the given class according to the definition.
public static getUpdateCommand(
string $class
) : array
Returns a set of statements designed to update the database table of the class according to the current definition.
public static update(
string $class
) : void
Updates the database table of the given class according to the current definition.
public static drop(
string $class
) : void
Deletes the database table of the given class.
Previous chapter
Jet\DataModel_Backend_Config
Next chapter
Forms