# DatabaseHandler

# Constructor

  new Biscord.DatabaseHandler( RelativePath )
1
PARAMETER TYPE OPTIONAL DESCRIPTION
RelativePath (opens new window) String (opens new window) The relative path to your json file, starting from the current directory.

# Methods

# keys( key )

Get the keys of the key in the database.

PARAMETER TYPE OPTIONAL DESCRIPTION
key String (opens new window) Return the keys inside of a key or all the keys in the database.

Returns: Array (opens new window)

# get( key )

Get the value of a key in the database.

PARAMETER TYPE OPTIONAL DESCRIPTION
key String (opens new window) The key you wish to get.

Returns: Any

# set( key , value )

Set the value of a key in the database.

PARAMETER TYPE OPTIONAL DESCRIPTION
key String (opens new window) The key you wish to set.
value Any ≠ Function The value you wish to set.

Returns: Boolean (opens new window)

# push( key , value )

Pushes a value to the value of a key in the database.

PARAMETER TYPE OPTIONAL DESCRIPTION
key String (opens new window) The key you wish to push to.
value Any ≠ Function The value you wish to push.

Returns: Boolean (opens new window)

# add( key , value )

Adds to the value of a key in the database.

PARAMETER TYPE OPTIONAL DESCRIPTION
key String (opens new window) The key you wish to add from.
value Any ≠ Function The value you wish to add.

Returns: Boolean (opens new window)

# subtract( key , value )

Subtracts to the value of a key in the database.

PARAMETER TYPE OPTIONAL DESCRIPTION
key String (opens new window) The key you wish to subtract from.
value Any ≠ Function The value you wish to subtract.

Returns: Boolean (opens new window)

# delete( key )

Deletes a key from the database.

PARAMETER TYPE OPTIONAL DESCRIPTION
key String (opens new window) The key you wish to get.

Returns: Boolean (opens new window)