Socket
Book a DemoInstallSign in
Socket

inaba

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inaba

0.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Inaba SDBM Manipulator

Introduction

Inaba SDBM Manipulator is a command line tool to manipulate SDBM database.

Operation Environment

We checked good operation within following environment.

  • Linux(openSUSE 12.2)・Mac OS X 10.8.2
  • Ruby 1.9.3

Architectonics

  • bin
    • inaba :: Executable script
  • doc :: Documents generated by rdoc
  • lib
    • inaba
      • manipulator.rb :: Manipulator class
  • Rakefile :: Rakefile that is used to generate gem file
  • test
    • tb_manipulator.rb :: Unit test of Manipulator

Depended libraries

  • Hakto SDBM Safe Wrapper
  • Ariete STDOUT & STDERR Capture Module

Install

Download inaba-x.y.z.gem, then execute following command to install Inaba.

$ sudo gem install inaba-x.y.z.gem

On the other hand, you can install from RubyGems.org to use following command.

$ sudo gem install inaba

Tutorial

Configuration of environment variable

Set file path of SDBM database to environment variable named $INABA_DB. If target database file is named rabbit.sdb, use following command in bash.

$ export INABA_DB="rabbit.sdb"

Add key value pair

Use add command to add a value to key.

$ inaba add rabbit RABBIT

Use list command to show key value pairs.

$ inaba list

[rabbit]:RABBIT

Add more pairs.

$ inaba add bunny BUNNY

$ inaba add hare HARE

$ inaba list

[rabbit]:RABBIT
[bunny]:BUNNY
[hare]:HARE

Inaba can output a pair list with CSV format.

$ inaba csv

rabbit,RABBIT
bunny,BUNNY
hare,HARE

Also use keys command to list keys.

$ inaba keys

rabbit, bunny, hare,

Values command works listing values.

$ inaba values

RABBIT, BUNNY, HARE,

Use del command to delete key value command.

$ inaba del rabbit

$ inaba list

[bunny]:BUNNY
[hare]:HARE

Clear command removes all key value pairs.

$ inaba clear

Commands reference

コマンド引数説明
addkey valueAdd value to key
delkeyDelete a value associated with key
listOutput key value pairs
keysOutput keys
valuesOutput values
csvOutput pairs with CSV format
helpOutput command list

License

Inaba is distributed with MIT License. See the LICENSE file to read the detail of license.

About Author

Moza USANE
http://blog.quellencode.org/
mozamimy@quellencode.org

FAQs

Package last updated on 18 Dec 2012

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.