Functions | |
string | _GetFile (type token) |
string | Read (type token, optional default="") |
read the token from the database | |
string | Write (type token, type value) |
write the value of token into database | |
string | Delete (type token) |
delete the token from the database | |
string | Incr (type token, optional num=1) |
increment the value of token from the database | |
string | MkDir (type database) |
create an additional sub-database into the already existing default database | |
string | DeleteDir (type database) |
delete sub-database from the already existing default database | |
string | Lock (type token) |
get the lock for database token |
variable | string NAME = DEFAULT | set NAME DEFAULT |
variable | array NAME = DEFAULT | array set NAME DEFAULT |
procedure | string NAME ( type ARG1, ... ) | proc NAME {ARG1 ...} |
procedure | string NAME ( optional ARG1=DEF1, ... ) | proc NAME {{ARG1 DEF1} ...} |
lib/libDb.tcl
is available with: package require db ?1.0?
string db::_GetFile | ( | type | token | ) |
string db::Read | ( | type | token, | |
optional | default = "" | |||
) |
read the token from the database
token | the token to read | |
default | the default value used if token is not available (default: "") |
string db::Write | ( | type | token, | |
type | value | |||
) |
write the value of token into database
token | the token to write | |
value | the value of the token |
string db::Delete | ( | type | token | ) |
delete the token from the database
token | the token to delete |
string db::Incr | ( | type | token, | |
optional | num = 1 | |||
) |
increment the value of token from the database
token | the token to delete | |
num | the increment (default: 1) |
string db::MkDir | ( | type | database | ) |
create an additional sub-database into the already existing default database
database | the name of the database |
db::MkDir my_new_data_storage db::Write my_new_data_storage/my_new_token "hallo otto"
string db::DeleteDir | ( | type | database | ) |
delete sub-database from the already existing default database
database | the database to delete |
string db::Lock | ( | type | token | ) |
get the lock for database token
token | the token to get the lock for |