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

swift_db

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swift_db

  • 0.1.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Swift DB

Swift DB is a lightweight and clean In memory Distributed Database written in pure ruby. It can also be used as a new distributed datastructure(B+ Tree) in ruby.

Installation: via Ruby Gem: gem install swift_db via Github: https://github.com/ask4prasath/swift_db

Features:

  • Stores Data in a Inmemory (B+ tree) Datastructure
  • Executes Various kinds of queries(Provides variety of range search)
  • Supports RegEx Search
  • Returns Result using Table.rb Object model.

Examples: require 'rubygems' require 'swift_db' include Db::Core

person = Table.new(3) #Where 3 is the Node Structure The minimum you give the better the performance but takes some memoryh person.insert(1, "Michael Ken") person.insert(2, "John Key") person.insert(3, "stacy")

For Searching: person.search(1) => ["Michael Ken"] #Fetches Person With primary key 1 person.search(3, DB::Core::Common::Comparison::LT) => ["Michael Ken", "John Key"] #Fetches Person whose primary key lesser than 3 person.search(2, DB::Core::Common::Comparison::GT) => ["stacy"] #Fetches Person whose primary key greater than 2 person.search(3, DB::Core::Common::Comparison::NEQ) => ["Michael Ken", "John Key"] #Fetches Person whose primary key not equal to 3

FAQs

Package last updated on 02 Jan 2011

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