redbean-sql
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -32,3 +32,3 @@ "use strict"; | ||
if (name in target) { | ||
Reflect.set(target, name, value, receiver); | ||
return Reflect.set(target, name, value, receiver); | ||
} | ||
@@ -35,0 +35,0 @@ else { |
{ | ||
"name": "redbean-sql", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "redbean-sql is last version of `redbean-node` with bug fixes", | ||
@@ -5,0 +5,0 @@ "main": "dist/redbean-node.js", |
@@ -29,13 +29,2 @@ # RedBeanNode | ||
## Read More | ||
Docs: | ||
http://redbean-node.whatsticker.online | ||
## Playground | ||
Try RedBeanNode in browser! | ||
https://runkit.com/louislam/redbeannode-playground | ||
## Code Example | ||
@@ -88,9 +77,19 @@ | ||
## Fixed | ||
# Unit Test | ||
Fixed relations | ||
Please build the project before run the test. | ||
```javascript | ||
let car = db.R.dispense('car'); | ||
car.brand = 'Brand'; | ||
car.model = 'Model'; | ||
car.year = 'Model'; | ||
car.chat_keyword= 'KWD'; | ||
try {await db.R.store(car);}catch (e) {console.log(e);} | ||
# Additional | ||
Icons made by <a href="https://www.flaticon.com/authors/vitaly-gorbachev" title="Vitaly Gorbachev">Vitaly Gorbachev</a> from https://www.flaticon.com | ||
console.log("Creating usercar model"); | ||
let usercar = db.R.dispense('usercar'); | ||
usercar.added_date = db.R.isoDate(); | ||
usercar.car = car; // Now this store correctly without any errors | ||
try {await db.R.store(usercar);}catch (e) {console.log(e);} | ||
``` |
154503
93