JsonTable
class JsonTable
This class provides static functions to update the definition of tables in a JsonSQL database
Methods
static void
static void
static void
setDescription(Engine $engine, string $table, string|bool $description = false)
Set or remove the description of a table.
Details
at line 51
static void
create(Engine $engine, string $table, stdClass $columns, array $required, array $foreignkeys, bool $ifnotexists = false)
Creates a table in the database
at line 97
static void
drop(Engine $engine, string $table, bool $ifexists = false)
Drops a table
at line 121
static void
rename(Engine $engine, string $table, string $newname)
Renames a table
at line 147
static void
setTitle(Engine $engine, string $table, string|bool $title = false)
Set or remove the title of a table.
at line 178
static void
setDescription(Engine $engine, string $table, string|bool $description = false)
Set or remove the description of a table.