_id
per recorddeno add @studiowebux/petitedb
Example:
import { PetiteDB } from "@studiowebux/petitedb"; const db = new PetiteDB("database.json"); // Collection name: Category // Record id: shoes db.create("category", "shoes", { name: "Shoe" }); db.upsert("category", "shoes", { name: "shoes" }); db.update("category", "shoes", { name: "Shoes" }); db.read("category", "shoes"); db.find("category", { name: "Shoes" }); db.delete("category", "shoes");
const db1 = new PetiteDB("autoid.json"); db1.upsert("movies", "movie1", { title: "test 1" }); db1.upsert("movies", "movie2", { title: "test 2" }); db1.upsert("movies", "movie3", { title: "test 3" }); console.log(db1.readAll("movies"));
git tag -a X.Y.Z -m "Version X.Y.Z" git push origin tags/X.Y.Z
Branch Checkout:
git checkout -b <feature|fix|release|chore|hotfix>/prefix-name
Your branch name must starts with [feature|fix|release|chore|hotfix] and use a / before the name; Use hyphens as separator; The prefix correspond to your Kanban tool id (e.g. abc-123)
Keep your branch synced:
git fetch origin git rebase origin/master
Commit your changes:
git add . git commit -m "<feat|ci|test|docs|build|chore|style|refactor|perf|BREAKING CHANGE>: commit message"
Follow this convention commitlint for your commit message structure
Push your changes:
git push origin <feature|fix|release|chore|hotfix>/prefix-name
Examples:
git checkout -b release/v1.15.5 git checkout -b feature/abc-123-something-awesome git checkout -b hotfix/abc-432-something-bad-to-fix
git commit -m "docs: added awesome documentation" git commit -m "feat: added new feature" git commit -m "test: added tests"
Distributed under the MIT License. See LICENSE for more information.
Add Package
deno add jsr:@studiowebux/petitedb
Import symbol
import * as petitedb from "@studiowebux/petitedb";
---- OR ----
Import directly with a jsr specifier
import * as petitedb from "jsr:@studiowebux/petitedb";
Add Package
npx jsr add @studiowebux/petitedb
Import symbol
import * as petitedb from "@studiowebux/petitedb";
Add Package
yarn dlx jsr add @studiowebux/petitedb
Import symbol
import * as petitedb from "@studiowebux/petitedb";
Add Package
pnpm dlx jsr add @studiowebux/petitedb
Import symbol
import * as petitedb from "@studiowebux/petitedb";
Add Package
bunx jsr add @studiowebux/petitedb
Import symbol
import * as petitedb from "@studiowebux/petitedb";