Type for the value of the field.
Initialize the Field.
Options to initialize FieldBase with.
Table attribute to map this Model property to.
Value or function to get value from to use when the Model property is empty.
Model name of the field, set by init function in Model or Field constructor.
Get the default value to use in toTable if no value it set.
Model property name associated with field (passed into toTable).
Data from the model that to reference for default.
Current context this method is being called in.
Default value to use.
Initialize the field with the field name from the Model's schema and the model.
Name of the model attribute this field is set on.
Model this field is associated with.
Name of table attribute. Used in Condition based Field methods.
Method called after calling into the table object to read and write to the table. This method will convert the table data into model data.
Name of the model attribute this field is associated with (generally same as init name argument).
Data from the table that needs to be mapped to the model data.
Data object for the model that this method will append to.
Current context this method is being called in.
Method called before calling into the table object to read and write to the table. This method will convert the model data into table data and append read or write conditions.
Name of the model attribute this field is associated with (generally same as init name argument).
Data from the model that needs to be mapped to the table data.
Data object for the table that this method will append to.
Current context this method is being called in.
Method called before calling into the table object to update the table. This method will convert the model data into table data and append read or write conditions.
Note: Several Fields will just call toTable from toTableUpdate if they don't support any special update syntax.
Name of the model attribute this field is associated with (generally same as init name argument)
Data from the model that needs to be mapped to the table data.
Data object for the table that this method will append to.
Current context this method is being called in.
Generated using TypeDoc
Base Field implementation used by many of the basic field types.