This is a simple wrapper class to represent a MySQL type that will be used to define a table. It also provides a fluent API to set properties of the column (e.g. nullability). You can easily create your own custom types by instantiating this class.
const myCustomType = new MySqlType<Nullable<string>>("myCustomType"); Copy
const myCustomType = new MySqlType<Nullable<string>>("myCustomType");
Readonly
Returns a string representation of an object.
This is a simple wrapper class to represent a MySQL type that will be used to define a table. It also provides a fluent API to set properties of the column (e.g. nullability). You can easily create your own custom types by instantiating this class.
Example