-
Notifications
You must be signed in to change notification settings - Fork 1
SQL Attributes
ShimmyMySherbet edited this page Jul 26, 2020
·
1 revision
Attribute | Attaches To | Parameters | Usage |
---|---|---|---|
SQLAutoIncrement | Field | N/A | Declares a field as auto incrementing. For use in creating a table |
SQLDatabaseEngine | Class | String | Sets the database engine. Default is InnoDB. |
SQLDefault | Field | Object | Sets the default value for the SQL field. |
SQLIgnore | Field | N/A | Sets the field to be ignored. |
SQLIndex | Field | N/A | Sets the field to have a single field database index. |
SQLNull | Field | N/A | Sets the field to default to a null value. |
SQLOmit | Field | N/A | Sets the field to default to omitted when inserting. For use with auto-increment and default values. |
SQLPrimaryKey | Field | N/A | Sets the field as a Primary Key. Required for use of Updating and Deleting. |
SQLPropertyName | Field | String | Changes the field's SQL name from the class field name. |
SQLUnique | Field | N/A | Sets the field's value as unique in the database table. |