[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]  


SCM Relational Databases

These relational database packages are for the SCM interface.

wb-table

(require 'wb-table)

wb-table is a straightforward embedding of SLIB base-table (see section `Base Table' in SLIB) in WB with SCM. It supports scheme expressions for keys and values whose text representations are less than 255 characters in length. The primitive types supported are:
boolean #t or #f.
string 0 - 255 byte string.
symbol 0 - 255 byte symbol.
atom internal legacy alias for symbol (or #f).
integer
number
ordinal String representation (< 256.B) of numbers. Nonnegative integers sort correctly.
expression Scheme expression (representation must be < 256.B).

rwb-isam

(require 'rwb-isam)

rwb-isam is a sophisticated base-table implementation built on WB and SCM which uses binary numerical formats for keys and non-key fields. It supports IEEE floating-point and fixed-precision integer keys with the correct numerical collation order.

In addition to the types described for wb-table, rwb-isam supports the following types for keys and values:
r64 Real represented by one IEEE 64.bit number.
r32 Real represented by one IEEE 32.bit number.
s64 Signed 64.bit integer.
s32 Signed 32.bit integer.
s16 Signed 16.bit integer.
s8 Signed 8.bit integer.
u64 Nonnegative 64.bit integer.
u32 Nonnegative 32.bit integer.
u16 Nonnegative 16.bit integer.
u8 Nonnegative 8.bit integer.

Complex numbers are supported for non-key fields:
c64 Complex represented by two IEEE 64.bit numbers.
c32 Complex represented by two IEEE 32.bit numbers.


[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]