Personal tools

SRB:SRB Perl Module

From Adapt

Jump to: navigation, search

Download

Requirements


Installation Instructions

Edit SRB_HOME and PERL_INCL at the top of the Makefile to point to your srb distribution and perl headers. Run 'make'. You will end up with srbcore.so and srbcore.pm. Copy these into a location of your choice and point perl at it.

The test.pl script can be used to verify that most of the functions are working

Currently Implemented Features

See test.pl for examples of supported functions.

Connection/Error Reporting

  • srbConnect
  • clReset
  • clFinish
  • srbError

Collection Operations (v0.2)

  • srbCreateCollect
  • srbModifyCollect
  • srbLsCollect

File Operations

  • srbObjCreate
  • srbObjOpen
  • srbObjClose
  • srbObjUnlink
  • srbObjRead
  • srbObjWrite
  • srbModifyDataset (v0.2)

Metadata Operations (v0.2)

  • srbSearch - Takes qval and sval arrays similiar to srbGetDataDirInfo
  • srb_search_results object
    • get_num_rows - get number or returned rows
    • get_next - return more results
    • get_item - get specific item
    • get_row - return entire row for sval value
    • more_results - test to see if more results


Examples


Copyright

Please see included COPYRIGHT.* files included with the software. Parts of srbhelper.h are ©General Atomics and The Regents of the University of California.

-- Main.MikeSmorul - 02 May 2005