Chapter 102. volatable
This is a complete volatile file library that implements the vola1base as an in memory, virtual database that is compliant to SBME and db1table. It does not currently implement the table modification functionality, only table creation.
vola1base
Description
Type Tags
db1base
Object Value
Objects of type vola1base have no value, and it is an error to try to get or set this value.
vola1base.new()
Description
Prototype
vola1base
.new
(
vola1base
,
string me
)
filename
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
filename | untitled | string |
Properties
Property | Type | Description |
---|---|---|
_ | type(*) | |
__ | type(*) | |
_private | vola1baseprivate | |
cachesize | integer | |
commit | function | |
committype | string | |
filename | string | |
gettablenames | function | |
lock | function | |
locktype | string | |
newtable | function | |
opentable | function | |
rollback | function | |
setcachesize | function | |
setcommittype | function | |
type | type | |
unlock | function |
Methods
commit()
Description
Prototype
vola1basevar
.commit
(
vola1base
,
integer me
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
error | None | integer |
gettablenames()
Description
Prototype
vola1basevar
.gettablenames
(
vola1base
,
array me
,
string tablenames
,
integer pattern
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
tablenames | None | array | |
pattern | None | string | |
error | None | integer |
lock()
Description
Prototype
vola1basevar
.lock
(
vola1base
,
string me
,
integer locktype
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
locktype | None | string | |
error | None | integer |
newtable()
Description
Prototype
vola1basevar
.newtable
(
vola1base
,
string me
)
tablename
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
tablename | None | string |
opentable()
Description
Prototype
vola1basevar
.opentable
(
vola1base
,
string me
,
integer tablename
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
tablename | None | string | |
error | None | integer |
rollback()
Description
Prototype
vola1basevar
.rollback
(
vola1base
,
integer me
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
error | None | integer |
setcachesize()
Description
Prototype
vola1basevar
.setcachesize
(
vola1base
,
integer me
)
cachesize
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
cachesize | None | integer |
setcommittype()
Description
Prototype
vola1basevar
.setcommittype
(
vola1base
,
string me
)
committype
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
committype | None | string |
unlock()
Description
Prototype
vola1basevar
.unlock
(
vola1base
,
integer me
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | vola1base | |
error | None | integer |