All Projects → ChristoPy → chainDB

ChristoPy / chainDB

Licence: MIT license
A noSQL database based on blockchain technology

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to chainDB

Nosqlmap
Automated NoSQL database enumeration and web application exploitation tool.
Stars: ✭ 1,928 (+14730.77%)
Mutual labels:  nosql, databases, nosql-databases
Unqlite
An Embedded NoSQL, Transactional Database Engine
Stars: ✭ 1,583 (+12076.92%)
Mutual labels:  nosql, nosql-databases
skytable
Skytable is an extremely fast, secure and reliable real-time NoSQL database with automated snapshots and TLS
Stars: ✭ 696 (+5253.85%)
Mutual labels:  nosql, databases
Awesome Nosql Guides
💻 Curated list of awesome resources and links about using NoSQL databases
Stars: ✭ 116 (+792.31%)
Mutual labels:  nosql, databases
pika
Pika is a nosql compatible with redis, it is developed by Qihoo's DBA and infrastructure team
Stars: ✭ 4,719 (+36200%)
Mutual labels:  nosql, nosql-databases
Pika
Pika is a nosql compatible with redis, it is developed by Qihoo's DBA and infrastructure team
Stars: ✭ 4,439 (+34046.15%)
Mutual labels:  nosql, nosql-databases
Rom
Data mapping and persistence toolkit for Ruby
Stars: ✭ 1,959 (+14969.23%)
Mutual labels:  nosql, databases
Blockchain Python
A blockchain implementation in Python
Stars: ✭ 233 (+1692.31%)
Mutual labels:  block, blockchain-technology
slack-block-kit
DEPRECATED: Use https://github.com/slack-php/slack-php-block-kit instead
Stars: ✭ 30 (+130.77%)
Mutual labels:  block, blocks
Ravendb
ACID Document Database
Stars: ✭ 2,870 (+21976.92%)
Mutual labels:  nosql, nosql-databases
pacNEM
pacNEM is a Browser PacMan game with NodeJS, Socket.io, Handlebars and NEM Blockchain
Stars: ✭ 20 (+53.85%)
Mutual labels:  node-js, blockchain-technology
MongoDB-University
Repo for All MongoDB University Courses
Stars: ✭ 102 (+684.62%)
Mutual labels:  nosql, nosql-databases
MochaDB
A .NET ACID RDBMS and NoSQL(with mods/tools) database.
Stars: ✭ 19 (+46.15%)
Mutual labels:  nosql, nosql-databases
zuly
🤖 | Hi, I'm zuly, a brazilian bot! Focused on animes!
Stars: ✭ 45 (+246.15%)
Mutual labels:  node-js
free-node.js-learning-resources
A curated list of free resources to learn node.js
Stars: ✭ 70 (+438.46%)
Mutual labels:  node-js
arcscord
A Discord library written in typescript
Stars: ✭ 18 (+38.46%)
Mutual labels:  node-js
steam-mass-comment-bot
💬 Comment with a few clicks under a ton of steam profiles & groups!
Stars: ✭ 16 (+23.08%)
Mutual labels:  node-js
blockchain-carbon-accounting
This project implements blockchain applications for climate action and accounting, including emissions calculations, carbon trading, and validation of climate claims. It is part of the Linux Foundation's Hyperledger Climate Action and Accounting SIG.
Stars: ✭ 123 (+846.15%)
Mutual labels:  blockchain-technology
libra-go
Go Client for interacting with Libra Blockchain
Stars: ✭ 50 (+284.62%)
Mutual labels:  blockchain-technology
poet
Configuration-based post type, taxonomy, block category, and block registration for Sage 10.
Stars: ✭ 124 (+853.85%)
Mutual labels:  blocks
chainDB
A noSQL database based on blockchain technology. It's purpose is to store data using a simple append only system (maybe a future way to edit Blocks?).

CodeFactor

Installation

npm install @christopy/chaindb --save

Creating a Chain

// Get chainDB.
const Chain = require ("@christopy/chaindb");

// Create the Chain.
Chain.New ("My awesome blockchain DB");

Adding Blocks

To add a Block, just specify your name and your content.

// Add a Block with a title of "phrase" and your content as "lorem ipsum".
Chain.Add ("phrase", "lorem ipsum");

// Add a Block with a title of "user" and your content as an Object.
Chain.Add ("user", {
  name: "john",
  last_name: "doe"
});

// Add a Block with a title of "user" and your content as an Object.
Chain.Add ("user", {
  username: "ChristoPy",
  age: 19
});

Picking Blocks

To get Blocks, just specify your name and if you want the first, the last or all Blocks added with that name. If no Blocks where found, returns null.

// Get the first Block added to the Chain with "user" as your name.
const FirstUser = Chain.First ("user"); // {name: "john", last_name: "doe"}

// Get the last Block added to the Chain with "user" as your name.
const LastUser = Chain.Last ("user"); // {username: "ChristoPy", age: 19}

// Get all Blocks added to the Chain with "user" as your name.
const AllUsers = Chain.All ("user"); // [{name: "john", last_name: "doe"}, {username: "ChristoPy", age: 19}]

// Tryies to get a Block that don't exists on the Chain.
const AllHeroes = Chain.All ("superheroes"); // null

Why blockchain?

Why not blockchain?

Version

2.0.3

Thanks

Icon made by chanut from www.flaticon.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].