SIMPOL Documentation

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 me, string filename )

Parameters

ParameterDefault valueType nameDescription
meNonevola1base
filenameuntitledstring

Properties

PropertyTypeDescription
_type(*)
__type(*)
_privatevola1baseprivate
cachesizeinteger
commitfunction
committypestring
filenamestring
gettablenamesfunction
lockfunction
locktypestring
newtablefunction
opentablefunction
rollbackfunction
setcachesizefunction
setcommittypefunction
typetype
unlockfunction

Methods

commit()

Description

Prototype

vola1basevar.commit ( vola1base me, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
errorNoneinteger

gettablenames()

Description

Prototype

vola1basevar.gettablenames ( vola1base me, array tablenames, string pattern, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
tablenamesNonearray
patternNonestring
errorNoneinteger

lock()

Description

Prototype

vola1basevar.lock ( vola1base me, string locktype, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
locktypeNonestring
errorNoneinteger

newtable()

Description

Prototype

vola1basevar.newtable ( vola1base me, string tablename )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
tablenameNonestring

opentable()

Description

Prototype

vola1basevar.opentable ( vola1base me, string tablename, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
tablenameNonestring
errorNoneinteger

rollback()

Description

Prototype

vola1basevar.rollback ( vola1base me, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
errorNoneinteger

setcachesize()

Description

Prototype

vola1basevar.setcachesize ( vola1base me, integer cachesize )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
cachesizeNoneinteger

setcommittype()

Description

Prototype

vola1basevar.setcommittype ( vola1base me, string committype )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
committypeNonestring

unlock()

Description

Prototype

vola1basevar.unlock ( vola1base me, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonevola1base
errorNoneinteger