Jint Commands: Difference between revisions
From Data Islands
WikiSysopdi (talk | contribs) (Created page with "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("is...") |
WikiSysopdi (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
# di.deleteisland("islandname") | # di.deleteisland("islandname") | ||
# di.querydb("sql_query") | # di.querydb("sql_query") | ||
# di.push("islandname") | # di.push("islandname") - see JINT section on [[Push]] | ||
# di.("islandname") | # di.("islandname") | ||
# di.status() | # di.status() | ||
Line 48: | Line 48: | ||
# di.logout("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. | |||
<nowiki> | |||
function sleep(ms) { | |||
var start = Date.now(); | |||
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 } }