class SQLiteBuilder extends Builder (View source)
protected Connection | $connection | The database connection instance. | from Builder |
protected Grammar | $grammar | The schema grammar instance. | from Builder |
protected Closure | $resolver | The Blueprint resolver callback. | from Builder |
static int | $defaultStringLength | The default string length for migrations. | from Builder |
void | __construct(Connection $connection) Create a new database Schema manager. | from Builder |
static void | defaultStringLength(int $length) Set the default string length for migrations. | from Builder |
bool | hasTable(string $table) Determine if the given table exists. | from Builder |
bool | hasColumn(string $table, string $column) Determine if the given table has a given column. | from Builder |
bool | hasColumns(string $table, array $columns) Determine if the given table has given columns. | from Builder |
string | getColumnType(string $table, string $column) Get the data type for the given column name. | from Builder |
array | getColumnListing(string $table) Get the column listing for a given table. | from Builder |
void | table(string $table, Closure $callback) Modify a table on the schema. | from Builder |
void | create(string $table, Closure $callback) Create a new table on the schema. | from Builder |
void | drop(string $table) Drop a table from the schema. | from Builder |
void | dropIfExists(string $table) Drop a table from the schema if it exists. | from Builder |
void | dropAllTables() Drop all tables from the database. | |
void | dropAllViews() Drop all views from the database. | |
void | dropAllTypes() Drop all types from the database. | from Builder |
void | rename(string $from, string $to) Rename a table on the schema. | from Builder |
bool | enableForeignKeyConstraints() Enable foreign key constraints. | from Builder |
bool | disableForeignKeyConstraints() Disable foreign key constraints. | from Builder |
void | build(Blueprint $blueprint) Execute the blueprint to build / modify the table. | from Builder |
Blueprint | createBlueprint(string $table, Closure $callback = null) Create a new command set with a Closure. | from Builder |
void | registerCustomDoctrineType(string $class, string $name, string $type) Register a custom Doctrine mapping type. | from Builder |
Connection | getConnection() Get the database connection instance. | from Builder |
$this | setConnection(Connection $connection) Set the database connection instance. | from Builder |
void | blueprintResolver(Closure $resolver) Set the Schema Blueprint resolver callback. | from Builder |
void | refreshDatabaseFile() Empty the database file. |
Create a new database Schema manager.
Set the default string length for migrations.
Determine if the given table exists.
Determine if the given table has a given column.
Determine if the given table has given columns.
Get the data type for the given column name.
Get the column listing for a given table.
Modify a table on the schema.
Create a new table on the schema.
Drop a table from the schema.
Drop a table from the schema if it exists.
Drop all tables from the database.
Drop all views from the database.
Drop all types from the database.
Rename a table on the schema.
Enable foreign key constraints.
Disable foreign key constraints.
Execute the blueprint to build / modify the table.
Create a new command set with a Closure.
Register a custom Doctrine mapping type.
Get the database connection instance.
Set the database connection instance.
Set the Schema Blueprint resolver callback.
Empty the database file.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Database/Schema/SQLiteBuilder.html