Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rel

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rel

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

BANDICOOT(1)

NAME bandicoot -- Bandicoot client.

SYNOPSIS db = Bandicoot.new(, ) db.post(<bandicoot_fn_symbol>, ) db.get(<bandicoot_fn_symbol>)

DESCRIPTION Bandicoot is a client library for the Bandicoot relational algebra database.

USAGE Create a client:

      db = Bandicoot.new

  Bandicoot receives two parameters: host, which defaults to "localhost",
  and port, which defaults to 12345. It will connect via HTTP to send POST
  and GET requests to the server.

  If we have this server side Bandicoot program:

      # cat foo.b
      rel Items {
        id: int,
        pid: int,
        ts: long,
      }

      queue: Items;

      fn push(i: Items) {
        queue += i - queue project(id);
      }

      fn list(): Items {
        return queue;
      }

  Then we can use Bandicoot as follows:

      db.post(:push, some_csv)
      db.get(:list)             #=> Returns an array of results

  It also provides a model-like class for mapping Bandicoot rels:

      class Item < Bandicoot::Rel
        field :id, :int
        field :pid, :int
        field :ts, :long
      end

  Now you can do:

      item = Item.new(id: 1, pid: 0, ts: 1310084883)
      db.post(:push, item.to_csv)

INSTALLATION $ gem install bandicoot

FAQs

Package last updated on 21 Aug 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