Upgrade 3CX to v18 and get it hosted free!

OpenSER module dbtext

Author image

db_text implements a simplified database engine based on text files. It can be used by OpenSER DB interface instead of other database module (like MySQL, PostgreSQL, UnixODBC).

The module was meant for use in demos or small devices that do not support other DB modules. It keeps everything in memory and if you deal with a large amount of data you may run quickly out of memory. The changes done in memory are flushed back at shutdown. If disk files are modified during runtime, the changes are not reflected inside OpenSER.

Also, it has not implemented all standard SQL database facilities (like order by), it includes minimal functionality to work OpenSER.

Example of dbtext table:


id(int,auto) name(str) flag(double) desc(str,null)
1:nick:0.34:a\tgood\: friend
2:cole:-3.75:colleague
3:bob:2.50:

Types of columns that can be defined in tbtext tables:

  • int – integer numbers.
  • double – real numbers with two decimals.
  • str – strings with maximum size of 4KB.

A column can have one of the attributes:

  • auto – only for ‘int’ columns, the maximum value in that column is incremented and stored in this field if it is not provided in queries.
  • null – accept null values in column fields.
  • if no attribute is set, the fields of the column cannot have null value

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.