fusionpbx/resources/install/scripts/resources/functions
Alexey Melnichuk 93e50ff1df Add. `role` to be able select database backend in constructor.
To configure use `database.backend` option
It can be a string value like `database.backend = 'native'`.
So it will always use same backend.
Or it can be a table value like
```Lua
database.backend = {
  main   = 'native';
  base64 = '';
}
```
Role `database.backend.main` is predefined and it equal to `native` if not set.
If there no role when Database class creates or role unknown role `main` is used
```Lua
dbh = Database.new('system') -- uses role `main`
dbh = Database.new('system', 'main') -- same as previews
dbh = Database.new('system', 'base64') -- uses role `base64`
dbh = Database.new('system', 'test')   -- uses role `main`
```
2016-03-25 10:04:48 +03:00
..
database Add. `role` to be able select database backend in constructor. 2016-03-25 10:04:48 +03:00
base64.lua Change require("mime") to require("mime.core"). 2015-08-27 13:27:24 -06:00
base64_alex.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
cache.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
channel_utils.lua Update follow_me.lua 2015-11-05 18:02:08 +03:00
config.lua Change '//' to '/'. This fixes a problem where its calling require when it should call dofile. 2015-08-11 20:25:34 -06:00
copy.lua Add a general copy function for lua and use it with voicemail forward. 2013-07-11 19:50:09 +00:00
count.lua Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
database.lua Add. `role` to be able select database backend in constructor. 2016-03-25 10:04:48 +03:00
database_handle.lua Move the includes/install to resources/install 2013-06-09 02:42:36 +00:00
esl.lua Fix. problem when same session can release task multiple times. 2015-11-26 17:23:33 +03:00
explode.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
file_exists.lua Add. mail templates for fax server responses. 2015-12-09 12:43:40 +03:00
format_ringback.lua Call center used with xml handler does not have access to the session. Remove session and replace it with api global_getvar as session is not always available. 2016-02-01 11:16:23 -07:00
format_seconds.lua Move the includes/install to resources/install 2013-06-09 02:42:36 +00:00
lazy_settings.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
log.lua Add. debug message to log. 2016-02-02 19:32:27 +03:00
mkdir.lua Move the includes/install to resources/install 2013-06-09 02:42:36 +00:00
presence_in.lua Fix small bags and clear code in call_flow. 2015-10-02 14:02:13 +04:00
send_mail.lua FusionPBX source coding standard uses tabs instead of spaces for indentation. 2016-01-04 13:04:51 -07:00
settings.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
sleep.lua Add. Lua part of fax_queue. 2015-11-18 16:27:55 +03:00
split.lua Fix. Add `split` function (required by lazy_settings). 2015-11-24 14:26:21 +03:00
text.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
trim.lua Move the includes/install to resources/install 2013-06-09 02:42:36 +00:00