You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ supported by [`node-mysql`](https://github.com/felixge/node-mysql).
158
158
159
159
## Type mappings
160
160
161
-
See [LoopBack types](http://loopback.io/doc/en/lb3/LoopBack-types.html) for
161
+
See [LoopBack 4 types](http://loopback.io/doc/en/lb4/LoopBack-types.html) (or [LoopBack 3 types](http://loopback.io/doc/en/lb3/LoopBack-types.html)) for
162
162
details on LoopBack's data types.
163
163
164
164
### LoopBack to MySQL types
@@ -253,6 +253,8 @@ _NOTE_ as of v3.0.0 of MySQL Connector, the following flags were introduced:
253
253
254
254
## Data mapping properties
255
255
256
+
Except the common database-specific properties we introduce in [How LoopBack Models Map To Database Tables/Collections](https://loopback.io/doc/en/lb4/Model.html#how-loopback-models-map-to-database-tablescollections), the following are more detailed examples and MySQL-specific settings.
257
+
256
258
### Table/Column Names
257
259
258
260
Besides the basic LoopBack types, as we introduced above, you can also specify
@@ -452,14 +454,15 @@ export class User extends Entity {
452
454
453
455
### Default Clause/Constant
454
456
455
-
Use the `default`property to have MySQL handle setting column `DEFAULT` value.
457
+
Use the `default`and `dataType` properties to have MySQL handle **setting column `DEFAULT` value**.
0 commit comments