Rewriteinterfaceno test imports itinterface RewriteThe settings with every default filled.
| Member | Type | What it is |
|---|---|---|
rewrite | boolean | |
casts | boolean | |
suffix | string |
Making a table again (commons data 0017-sql-rewrite): what an engine cannot change in place (whether a column may be null, a default, the primary key, a constraint, a column that is required and has no default) is made by making the table again from the state after the change: a new table, the rows copied, the old one dropped, the new one renamed, the indexes made. A change of type is made in place with a cast where the engine can, and by making the table again where it cannot, when the project says that values may be cast.
Rewriteinterfaceno test imports itinterface RewriteThe settings with every default filled.
| Member | Type | What it is |
|---|---|---|
rewrite | boolean | |
casts | boolean | |
suffix | string |
rewritefunctionfunction rewrite(given?: RewriteSettings): FallbackThe fallback of a project's settings.
| Parameter | What it is |
|---|---|
given | what a project says |
Returns: the fallback, to be given to plan or contributed through lifecycle.fallback
RewriteSettingsinterfaceno test imports itinterface RewriteSettingsWhat a project says of the rewrite; what is not said is the default.
| Member | Type | What it is |
|---|---|---|
rewrite? | "off" | "on" | Whether a table is made again where the engine cannot change it in place; on by default. |
casts? | "allow" | "refuse" | Whether a change of type may cast the values; refuse by default, which leaves it to a person. |
suffix? | string | The last word of the name the new table has while it is made; rebuild by default. |