Refdb

Update of "Accessing the data"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: c06688f0e03b82772bcc17350bdc958bc0990fea
Page Name:Accessing the data
Date: 2014-09-20 20:22:32
Original User: matt
Parent: 3b24355a6231ab6df4a7b8e958ba038c1e94fd36
Content

Accessing the data

Calls to refdb directly (use in shell scripts):

> refdb lookup condo-ctrl summer temp target
32

Use the ini-file egg

csi> (use ini-file)
csi> (property-separator-patt " ")
csi> (define cfgdat (read-ini "condo-ctrl/summer.dat" ))
csi> (cdr (assoc 'temp (cdr (assoc 'target cfgdat))))
28

Use the refdb unit (not yet documented or cleaned up :( )

refdb#common:sparse-list-generate-index  procedure
refdb#conf-get-record                    procedure
refdb#create-new-db                      procedure
refdb#dat->cells                         procedure
refdb#dat-lookup                         procedure
refdb#edit-refdb                         procedure
refdb#extract-refdb                      procedure
refdb#file->sxml                         procedure
refdb#find-section                       procedure

;; example:
(find-section '((a (b . c)(d . e))) 'a) => ((b . c) (d . e))

refdb#get-rowcol-names                   procedure
refdb#get-value-type                     procedure
refdb#hash-table-reverse-lookup          procedure
refdb#import-gnumeric-file               procedure
refdb#list-sections                      procedure

;; example:
(list-sections '((a (b . c)(d . e))))  => (a)

refdb#lookup                             procedure
refdb#main                               procedure
refdb#make-sheet-meta-if-needed          procedure
refdb#megatest->refdb                    procedure
refdb#process-action                     procedure
refdb#read-dat                           procedure
refdb#read-gnumeric-file                 procedure
refdb#refdb->sxml                        procedure
refdb#refdb-export                       procedure
refdb#refdb:read-gnumeric-xml            procedure
refdb#remove-section                     procedure

;; example:
(remove-section '((a (b . c))) 'a) => '()

refdb#replace-sheet-name-index           procedure
refdb#sheet->refdb                       procedure
refdb#string->safe-filename              procedure
refdb#sxml->file                         procedure
refdb#help                               variable
refdb#refdb-version                      variable