new nEDMDatabase(db_name)
Defines an interface for a given database
Parameters:
Name | Type | Description |
---|---|---|
db_name |
String | name of database |
Methods
get_database(db_nameopt) → {nEDMDB}
Gets current database, or other database
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
db_name |
String |
<optional> |
name of database, when not given then the current database |
Returns:
- Type
- nEDMDB
get_most_recent_value(var_name, callback)
Helper function, gets most recent value of a variable
Parameters:
Name | Type | Description |
---|---|---|
var_name |
String | name of variable |
callback |
module:lib/update_db.DBRequestCallback |
send_command(o) → {Object}
Helper function, sends command to current database
Parameters:
Name | Type | Description |
---|---|---|
o |
module:lib/update_db.CommandObject | Object to send command |
Returns:
- Type
- Object