awSQL

Exported as instance

Constructor

new awSQL()

Methods

createInstance(hostname, username, password, optionsopt) → {Instance}

Creates a new instance (database connection)
Parameters:
NameTypeAttributesDefaultDescription
hostnameStringlocalhostHostname where the database is located
usernameStringUsername to login with
passwordString
optionsInstanceOptions<optional>
Returns:
Type: 
Instance

deleteInstance(identifier) → {true}

Deletes an instance (and closes any open connection)
Parameters:
NameTypeDescription
identifierStringIdentifier of the instance to delete
Returns:
Type: 
true

getInstance(identifieropt) → {Instance}

Returns an instance matching the given identifier Returns default (or first) instance if no identifier is given
Parameters:
NameTypeAttributesDescription
identifierString<optional>
Identifier of the instance to get
Returns:
Type: 
Instance

listInstances() → {Array.<String>}

Returns a list of the identifiers of all instances
Returns:
Type: 
Array.<String>