README
Shared
My template for back-end style project, consists of two parts: this template and MS SQL base. This is a template for internal features, do not use it. Features:
- MS SQL 1.1. direct access 1.2. actions 1.3. settings with hot reload 1.4. write 'i am life' info (including memory use)
- Setting in ini file
- Panic
Kind: global class
- Shared
- .app_name :
string
- .app_version :
string
- .app_similar :
number
- .app_need_exit :
boolean
- .ini_setting :
lib_setting
- .sql :
lib_sql
- .init(app_filename, app_version, callback)
- .panic(text)
- .sql_setting_get(setting_rid) ⇒
string
- .app_name :
string
shared.app_name : Kind: instance property of Shared
string
shared.app_version : Kind: instance property of Shared
number
shared.app_similar : Kind: instance property of Shared
boolean
shared.app_need_exit : Kind: instance property of Shared
lib_setting
shared.ini_setting : Kind: instance property of Shared
lib_sql
shared.sql : Kind: instance property of Shared
shared.init(app_filename, app_version, callback)
Kind: instance method of Shared
Param | Type |
---|---|
app_filename | string |
app_version | string |
callback | function |
shared.panic(text)
print panic text and halt app
Kind: instance method of Shared
Param | Type |
---|---|
text | string |
string
shared.sql_setting_get(setting_rid) ⇒ get one setting value by setting code
Kind: instance method of Shared
Param | Type |
---|---|
setting_rid | string |