From 487f08df88238418402aadebf563010aa7159f21 Mon Sep 17 00:00:00 2001 From: biniam Date: Wed, 26 Jul 2017 09:51:09 -0400 Subject: [PATCH] Add datatype flags to README --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42f893f..bebd1e8 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ See [LoopBack types](http://loopback.io/doc/en/lb3/LoopBack-types.html) for de String - CHAR(1) + BIT(1)
CHAR(1)
TINYINT(1) Boolean @@ -205,6 +205,15 @@ See [LoopBack types](http://loopback.io/doc/en/lb3/LoopBack-types.html) for de +*NOTE* as of v3.0.0 of MySQL Connector, the following flags were introduced: + +* `treatCHAR1AsString` + default `false` - treats CHAR(1) as a String instead of a Boolean +* `treatBIT1AsBit` + default `true` - treats BIT(1) as a Boolean instead of a Binary +* `treatTINYINT1AsTinyInt` + default `true` - treats TINYINT(1) as a Boolean instead of a Number + ## Using the datatype field/column option with MySQL Use the `mysql` model property to specify additional MySQL-specific properties for a LoopBack model.