New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

skyrisingdb

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skyrisingdb

🌌 Sky._.RisingDB - Light Up Your Data! 🚀 Sky._.RisingDB is a simple, lightweight, and beginner-friendly database for Node.js. Inspired by the beauty of auroras, it's designed to make data storage effortless. Whether you're building a small app or experi

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source
sky.db
version downloads install size
🌌 Sky._.RisingDB - The Little Database That Could! 🚀

Owner

Features

  • Easy-to-use for creating, saving, and querying data models
  • Supports a variety of data types, including strings, numbers, dates, and booleans
  • Beginner friendly

Install


$ npm install skyrisingdb@latest 
$ yarn add skyrisingdb@latest 
$ pnpm add skyrisingdb@latest

Getting Started

To use Sky._.RisingDB, simply require the package and define your data models using the defineModel function. Here's an example:

const skydb = require('skyrisingdb');
const User = skydb.defineModel('./model');

// Create and save a new user
const user1 = new User({
  name: 'Alice',
  age: 30,
  birthdate: new Date('1992-07-12'),
  isActive: true
});

skydb.save(user1);

// Find all active users
const activeUsers = skydb.find(User, { isActive: true });
console.log('Active Users:', activeUsers);

Sky Db info

Sky._.RisingDB supports the following data types:
  • String: A string value, such as a name or description.
  • Number: A numeric value, such as an age or score.
  • Date: A date value, such as a birthdate or created date.
  • Boolean: A boolean value, such as a flag or status.

Sky._.RisingDB supports additional options:

  • default: Define default value
  • required: Define using true or false

Sky._.RisingDB saving, querying:

Save data in model

const user1 = new User({
    name: 'Alice',
    age: 30,
    isActive: true
});

skydb.save(user1); // Save to default location

querying in model:

const skydb = require('skyrisingdb');
const User = skydb.defineModel('./model');


const activeUsers = skydb.find(User, { isActive: true }); // use skydb.find to fetch data from model
console.log('Active Users:', activeUsers);


Examples

Model:

const User = define('User', {
  name: { type: 'string', required: true },
  age: { type: 'number', default: 25 },
  birthdate: { type: 'Date', required: true },
  isActive: { type: 'boolean', default: true }
});

module.exports = { User };

ISC License

  • Copyright (c) 2024, i._.become_a_devil

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

Keywords

FAQs

Package last updated on 31 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc