mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-31 09:33:48 +00:00
```Lua
local Database = require 'resources.functions.database'
-- Default backend configured via xml_handler.db_backend = 'native'
dbh = Database.new("system")
-- To use other backends you can use
dbh = Database.backend.luasql("system")
```
13 lines
216 B
Lua
13 lines
216 B
Lua
local Cache = require 'resources.functions.cache'
|
|
local Database = require 'resources.functions.database'
|
|
|
|
Database.__self_test__({
|
|
"native",
|
|
"luasql",
|
|
"odbc",
|
|
"odbcpool",
|
|
},
|
|
"system")
|
|
|
|
Cache._self_test()
|