swift_db 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/Manifest +0 -1
  2. data/README.rdoc +29 -0
  3. data/Rakefile +1 -1
  4. data/swift_db.gemspec +2 -2
  5. metadata +4 -4
data/Manifest CHANGED
@@ -10,4 +10,3 @@ lib/root/leaf.rb
10
10
  lib/root/table.rb
11
11
  lib/root/tree.rb
12
12
  lib/swift_db.rb
13
- swift_db.gemspec
data/README.rdoc CHANGED
@@ -0,0 +1,29 @@
1
+ Swift DB
2
+
3
+ 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.
4
+
5
+ Installation:
6
+ via Ruby Gem: gem install swift_db
7
+ via Github: https://github.com/ask4prasath/swift_db
8
+
9
+ Features:
10
+ * Stores Data in a Inmemory (B+ tree) Datastructure
11
+ * Executes Various kinds of queries(Provides variety of range search)
12
+ * Supports RegEx Search
13
+ * Returns Result using Table.rb Object model.
14
+
15
+ Examples:
16
+ require 'rubygems'
17
+ require 'swift_db'
18
+ include Db::Core
19
+
20
+ person = Table.new(3) #Where 3 is the Node Structure The minimum you give the better the performance but takes some memoryh
21
+ person.insert(1, "Michael Ken")
22
+ person.insert(2, "John Key")
23
+ person.insert(3, "stacy")
24
+
25
+ For Searching:
26
+ person.search(1) => ["Michael Ken"] #Fetches Person With primary key 1
27
+ person.search(3, DB::Core::Common::Comparison::LT) => ["Michael Ken", "John Key"] #Fetches Person whose primary key lesser than 3
28
+ person.search(2, DB::Core::Common::Comparison::GT) => ["stacy"] #Fetches Person whose primary key greater than 2
29
+ person.search(3, DB::Core::Common::Comparison::NEQ) => ["Michael Ken", "John Key"] #Fetches Person whose primary key not equal to 3
data/Rakefile CHANGED
@@ -2,7 +2,7 @@
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('swift_db', '0.1.1') do |p|
5
+ Echoe.new('swift_db', '0.1.2') do |p|
6
6
  p.description = "Stores data in a B+tree structure"
7
7
  p.url = "https://github.com/ask4prasath/swift_db"
8
8
  p.author = "Prasath V Ram"
data/swift_db.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{swift_db}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Prasath V Ram"]
9
- s.date = %q{2010-12-05}
9
+ s.date = %q{2010-12-07}
10
10
  s.description = %q{Stores data in a B+tree structure}
11
11
  s.email = %q{ask4prasath@gmail.com}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/a.rb", "lib/common/comparison.rb", "lib/db.rb", "lib/root/binary.rb", "lib/root/internal_node.rb", "lib/root/leaf.rb", "lib/root/table.rb", "lib/root/tree.rb", "lib/swift_db.rb"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swift_db
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Prasath V Ram
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-05 00:00:00 +05:30
18
+ date: 2010-12-07 00:00:00 +05:30
19
19
  default_executable:
20
20
  dependencies: []
21
21