2017-09-18

(sph storage dg)

binding to sph-dg

part of _

library description

bindings to use sph-dg databases

import name

(sph storage dg)

exports

dg-debug-count-all-btree-entries

procedure

signature

a ->

dg-txn -> integer

dg-debug-display-btree-counts

procedure

signature

a ->

dg-txn ->

dg-debug-display-content-left->right

procedure

signature

a ->

dg-txn ->

dg-debug-display-content-right->left

procedure

signature

a ->

dg-txn ->

dg-delete

procedure

signature

a b ->

dg-txn list -> unspecified

dg-exists?

procedure

signature

a b ->

dg-txn (integer:id ...) -> list

dg-exit

procedure

signature

->

description

completely deinitialises the database

dg-extern-create

procedure

signature

a [b c] ->

dg-txn [integer:count any:data] -> list

dg-extern-data->id

procedure

signature

a b ->

dg-txn any -> list

dg-extern-id->data

procedure

signature

a b [c d] ->

dg-txn (integer ...) [boolean:every?] -> list

dg-extern-update

procedure

signature

a b c ->

dg-txn integer:id any:data -> true

dg-extern?

procedure

signature

a ->

integer -> boolean

dg-id-create

procedure

signature

a [b] ->

dg-txn [count] -> (integer ...)

dg-id?

procedure

signature

a ->

integer -> boolean

dg-identify

procedure

signature

a b ->

dg-txn (integer:id ...) -> list

dg-index-errors-extern

procedure

signature

a ->

dg-txn -> list

dg-index-errors-intern

procedure

signature

a ->

dg-txn -> list

dg-index-errors-relation

procedure

signature

a ->

dg-txn -> list

dg-index-recreate-extern

procedure

signature

->

-> true

dg-index-recreate-intern

procedure

signature

->

-> true

dg-index-recreate-relation

procedure

signature

->

-> true

dg-init

procedure

signature

a [b] ->

path [options] ->

dg-init-extension

variable

dg-init-extension-add

procedure

signature

procs ... ->

dg-initialised?

procedure

signature

->

-> boolean

dg-intern-data->id

procedure

signature

a b [c] ->

dg-txn list [boolean:every?] -> (integer ...)

dg-intern-ensure

procedure

signature

a b ->

dg-txn list -> list:ids

dg-intern-id->data

procedure

signature

a b [c d] ->

dg-txn list [boolean:every?] -> (any ...)

dg-intern-id->string

procedure

signature

txn ids [every?] ->

dg-txn (integer ...) [boolean] -> (string ...)

dg-intern-small-data->id

procedure

signature

a ->

integer -> id

dg-intern-small-id->data

procedure

signature

a ->

id -> integer

dg-intern-small?

procedure

signature

a ->

id -> boolean

dg-intern-update

procedure

signature

a b c ->

dg-txn integer:id any:data -> true

dg-intern?

procedure

signature

a ->

integer -> boolean

dg-node-read

procedure

signature

a [b] ->

dg-selection [count] -> (vector ...)

dg-node-select

procedure

signature

a [b c] ->

dg-txn [types offset] -> dg-selection

description

types is zero or a combination of bits from dg-type-bit-* variables, for example (logior dg-type-bit-intern dg-type-bit-extern)

dg-null

variable

dg-null?

procedure

signature

a ->

any -> boolean

dg-relation-delete

procedure

signature

a b [c d e] ->

dg-txn (integer ...):left [(integer ...):right (integer ...):label list:((symbol:min integer) (symbol:max integer)):ordinal] -> unspecified

dg-relation-ensure

procedure

signature

a b c [d e f] ->

dg-txn list list [list false/procedure integer/any] -> list:ids

dg-relation-field-names

variable

dg-relation-read

procedure

signature

a [b] ->

dg-selection [integer:count] -> (vector ...)

dg-relation-record-label

procedure

signature

record ->

dg-relation-record-layout

variable

dg-relation-record-left

procedure

signature

record ->

dg-relation-record-ordinal

procedure

signature

record ->

dg-relation-record-right

procedure

signature

record ->

dg-relation-select

procedure

signature

a [b c d e f g] ->

dg-txn (integer ...):left [(integer ...):right (integer ...):label symbol:retrieve-only-field list:((symbol:min integer) (symbol:max integer)):ordinal integer:offset] -> dg-selection

dg-relation-select-fields

syntax

dg-relation-select-fields-retrieve

syntax

dg-relation-select-read

procedure

signature

txn [left right label retrieve ordinal offset count] ->

dg-relation-select-read-fields

syntax

signature

txn pattern-fields values ...

dg-relation-select-read-fields-retrieve

syntax

signature

txn pattern-retrieve pattern-fields values ...

dg-relation?

procedure

signature

a ->

integer -> boolean

dg-root

procedure

signature

->

-> string

dg-selection?

procedure

signature

a ->

any -> boolean

dg-size-octets-data-max

variable

dg-size-octets-data-min

variable

dg-size-octets-id

variable

dg-statistics

procedure

signature

a ->

dg-txn -> alist

dg-status-description

procedure

signature

a b ->

integer:status integer:group -> string

dg-txn-abort

procedure

signature

a ->

dg-txn ->

dg-txn-active?

procedure

signature

a ->

dg-txn -> boolean

dg-txn-call-read

procedure

signature

proc ->

procedure:{dg-txn -> any:result} -> any:result

description

call proc with a new read transaction.

the transaction is automatically finished on return with dg-txn-abort

dg-txn-call-write

procedure

signature

proc ->

procedure:{dg-txn -> any:result} -> any:result

description

call proc with a new write transaction.

the transaction is automatically committed on return if not already aborted or committed.

the transaction is aborted when an unhandled exception occurs

dg-txn-commit

procedure

signature

a ->

dg-txn -> unspecified

dg-txn-create-read

procedure

signature

->

-> dg-txn

dg-txn-create-write

procedure

signature

->

-> dg-txn

dg-txn?

procedure

signature

a ->

any -> boolean

dg-type-bit-extern

variable

dg-type-bit-id

variable

dg-type-bit-intern

variable

dg-type-bit-intern-small

variable

dg-types

syntax

dg-use

syntax

signature

(path (option-name option-value) ...) body ...


tags: documentation sph-dg-guile