Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "comfydb", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Comfiest Way To Use A Database!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,16 +11,13 @@ # ComfyDB | ||
```javascript | ||
const ComfyDB = require( "comfydb" ); | ||
await ComfyDB.Connect(); | ||
await ComfyDB.Store( "user1", { username: "Instafluff", profile: "Comfiest Coder and Mug Chef!", cakes: 0 } ); | ||
await ComfyDB.Store( "user2", { username: "Fluffington", profile: "Fluffy, Yellow, Hamsterbear.", cakes: 0 } ); | ||
await ComfyDB.Get( "user1" ); | ||
let user1 = await ComfyDB.Get( "user1" ); | ||
await ComfyDB.Search( { sortBy: "createdAt", sort: "desc", limit: 5, start: 10, where: { author: { beginsWith: "instaf" } } }, "blog-posts" ); | ||
await ComfyDB.Count( { where: { text: { contains: "lasagna" } } }, "blog-posts" ); | ||
await ComfyDB.Increment( "cakes", { by: 2, where: { username: { equals: "instafluff" } } } ); | ||
await ComfyDB.Decrement( "hitpoints", { by: 30, where: { party: { equals: "A" } } }, "game-stats" ); | ||
let users = await ComfyDB.Search( { sortBy: "createdAt", where: { username: { contains: "fluff" } } } ); | ||
ComfyDB.Close(); | ||
await ComfyDB.Delete( "item_42" ); | ||
await ComfyDB.DeleteAll( { where: { isEnemy: { is: true }, hitpoints: { "<": 0 } } }, "game-stats" ); | ||
``` | ||
@@ -55,2 +52,3 @@ | ||
const ComfyDB = require( "comfydb" ); | ||
// Wrap in async for back-compat in case top-level async/await is not supported | ||
(async () => { | ||
@@ -57,0 +55,0 @@ try { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
50254
3
195