Jint Commands: Difference between revisions
From Data Islands
WikiSysopdi (talk | contribs) No edit summary |
WikiSysopdi (talk | contribs) No edit summary |
||
Line 49: | Line 49: | ||
---- | ---- | ||
function sleep(ms) { | If you need a system to "pause" or wait (maybe due to API rate limiting) then this function is useful to include and call from your script. | ||
<nowiki> | |||
function sleep(ms) { | |||
} | var start = Date.now(); | ||
</nowiki> | while (Date.now() - start < ms) { | ||
// busy wait | |||
} | |||
} | |||
</nowiki> |
Latest revision as of 14:05, 28 August 2025
This page references all the commands available when in Jint mode
the "di" object is the wrapper for the console Javascript integration.
Commands:
- di.connect("usernamae","password")
- di.addserver("servertype","servername","username","password")
- di.deleteserver(index,"y")
- di.servers()
- di.dbtables()
- di.describe("tablename")
- di.describeisland("islandname")
- di.addregion("regionname")
- di.regions()
- di.deleteregion()
- di.islands()
- di.clearisland("islandname")
- di.deleteisland("islandname")
- di.querydb("sql_query")
- di.push("islandname") - see JINT section on Push
- di.("islandname")
- di.status()
- di.listdb()
- di.usedb("databasename")
- di.help()
- di.clear()
- di.logging("on")
- di.language("en")
- di.wizards()
- di.wizard(wizard_index)
- di.notifyme("mail subject","mail body")
- di.notifyteam("mail subject","mail body")
- di.version()
- di.update()
- di.access()
- di.removeuser("user_name")
- di.watchregion()
- di.unwatchregion()
- di.pull("islandname","destination_name")
- di.import("islandname","destination_name")
- di.runexe("full_file_path")
- di.nativesql("sql_query")
- di.deleteaccount()
- di.geolocation("code")
- di.limitip("ip_address")
- di.reset("y/n")
- di.logout("y/n")
If you need a system to "pause" or wait (maybe due to API rate limiting) then this function is useful to include and call from your script.
function sleep(ms) { var start = Date.now(); while (Date.now() - start < ms) { // busy wait } }