electrodb
Advanced tools
Comparing version 0.8.13 to 0.8.14
{ | ||
"name": "electrodb", | ||
"version": "0.8.13", | ||
"version": "0.8.14", | ||
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -64,2 +64,3 @@ # ElectroDB | ||
- [Find Stores that match core access patterns](#find-stores-that-match-core-access-patterns) | ||
- [Coming Soon:](#coming-soon) | ||
@@ -1085,1 +1086,4 @@ # Installation | ||
``` | ||
## Coming Soon: | ||
- `Collection` class for relating and querying across multiple entities. | ||
- |
@@ -101,3 +101,2 @@ let queryChildren = [ | ||
newExpression = newExpression.replace(/\n|\r/g, "").trim(); | ||
let existingNeedsParens = | ||
@@ -109,7 +108,5 @@ !existingExpression.startsWith("(") && | ||
if (existingNeedsParens) { | ||
console.log("EXISTING", existingExpression); | ||
existingExpression = `(${existingExpression})`; | ||
} | ||
if (newNeedsParens) { | ||
console.log("new", newExpression); | ||
newExpression = `(${newExpression})`; | ||
@@ -116,0 +113,0 @@ } |
@@ -597,3 +597,2 @@ const { Entity } = require("../src/entity"); | ||
); | ||
// console.log(records); | ||
let found = await db.scan | ||
@@ -608,2 +607,3 @@ .filter(({ property }) => property.gt("A")) | ||
.go(); | ||
expect(found) | ||
@@ -615,4 +615,2 @@ .to.be.an("array") | ||
}); | ||
// }); | ||
}); |
@@ -190,4 +190,10 @@ const { Entity, clauses } = require("../src/entity"); | ||
let impact3 = MallStores._getIndexImpact({ mall }); | ||
let impact4 = MallStores._getIndexImpact({ rent, mall }, {id, building, unit}); | ||
let impact5 = MallStores._getIndexImpact({ rent, leaseEnd, category }, {store, building, unit, store}); | ||
let impact4 = MallStores._getIndexImpact( | ||
{ rent, mall }, | ||
{ id, building, unit }, | ||
); | ||
let impact5 = MallStores._getIndexImpact( | ||
{ rent, leaseEnd, category }, | ||
{ store, building, unit, store }, | ||
); | ||
expect(impact1).to.deep.equal([ | ||
@@ -229,10 +235,10 @@ true, | ||
complete: { | ||
facets: { mall: 'EastPointe' }, | ||
indexes: [ | ||
'gsi1pk-gsi1sk-index', | ||
'gsi2pk-gsi2sk-index', | ||
'gsi3pk-gsi3sk-index' | ||
] | ||
} | ||
} | ||
facets: { mall: "EastPointe" }, | ||
indexes: [ | ||
"gsi1pk-gsi1sk-index", | ||
"gsi2pk-gsi2sk-index", | ||
"gsi3pk-gsi3sk-index", | ||
], | ||
}, | ||
}, | ||
]); | ||
@@ -244,6 +250,6 @@ expect(impact5).to.deep.equal([ | ||
complete: { | ||
facets: { leaseEnd: '2020/04/27', category: 'food/coffee' }, | ||
indexes: [] | ||
} | ||
} | ||
facets: { leaseEnd: "2020/04/27", category: "food/coffee" }, | ||
indexes: [], | ||
}, | ||
}, | ||
]); | ||
@@ -1065,3 +1071,3 @@ }); | ||
FilterExpression: | ||
"(( #rent >= :rent1 ) AND ( #mall = :mall1 )) OR ( #leaseEnd between :leaseEnd1 and :leaseEnd2 )", | ||
"(#rent >= :rent1 AND #mall = :mall1) OR (#leaseEnd between :leaseEnd1 and :leaseEnd2)", | ||
}); | ||
@@ -1101,3 +1107,3 @@ }); | ||
FilterExpression: | ||
"(( #rent >= :rent1 ) AND ( #mall = :mall1 )) OR ( #leaseEnd between :leaseEnd1 and :leaseEnd2 )", | ||
"(#rent >= :rent1 AND #mall = :mall1) OR (#leaseEnd between :leaseEnd1 and :leaseEnd2)", | ||
}); | ||
@@ -1139,3 +1145,3 @@ }); | ||
FilterExpression: | ||
"(( #rent >= :rent1 ) AND ( #mall = :mall1 )) OR ( #leaseEnd between :leaseEnd1 and :leaseEnd2 )", | ||
"(#rent >= :rent1 AND #mall = :mall1) OR (#leaseEnd between :leaseEnd1 and :leaseEnd2)", | ||
}); | ||
@@ -1176,3 +1182,3 @@ }); | ||
FilterExpression: | ||
"(( #rent >= :rent1 ) AND ( #mall = :mall1 )) OR ( #leaseEnd between :leaseEnd1 and :leaseEnd2 )", | ||
"(#rent >= :rent1 AND #mall = :mall1) OR (#leaseEnd between :leaseEnd1 and :leaseEnd2)", | ||
}); | ||
@@ -1179,0 +1185,0 @@ }); |
@@ -161,3 +161,3 @@ const moment = require("moment"); | ||
FilterExpression: | ||
"(( #rent >= :rent1 ) AND ( #mall = :mall1 )) OR ( #leaseEnd between :leaseEnd1 and :leaseEnd2 )", | ||
"(#rent >= :rent1 AND #mall = :mall1) OR (#leaseEnd between :leaseEnd1 and :leaseEnd2)", | ||
}, | ||
@@ -164,0 +164,0 @@ }, |
@@ -16,3 +16,2 @@ tests: | ||
features: | ||
- find method | ||
- scan method | ||
- find method |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4254
1087
226966