nomad v0.6.0 NomadSQL behaviour
Summary
Callbacks
Deletes the given ‘instance’
Returns a tuple with info about the given ‘instance’ with the format: {instance_name, region, address, status, allocated_storage}
Returns the address for the given ‘instance’
Creates a new database instance with name ‘instance’, the provided ‘settings’ and in the desired pricing/performance ‘tier’
Lists all instance classes/tiers for the given cloud provier’s SQL service
Lists all the available databases in the given ‘instance’
Lists all database instances for the given cloud credentials. The function returns a list of tuples with the following format: {instance_name, region, address, status, allocated_storage}
Restarts the given ‘instance’
Callbacks
Specs
delete_instance(instance :: binary) :: :ok | binary
Deletes the given ‘instance’.
Specs
get_instance(instance :: binary) :: map | binary
Returns a tuple with info about the given ‘instance’ with the format: {instance_name, region, address, status, allocated_storage}
Specs
get_instance_address(instance :: binary) :: binary
Returns the address for the given ‘instance’.
Specs
insert_instance(instance :: binary, settings :: map | list, {region :: binary, tier :: binary}, {user :: binary, password :: binary}, addresses :: list) ::
:ok |
binary
Creates a new database instance with name ‘instance’, the provided ‘settings’ and in the desired pricing/performance ‘tier’.
The ‘settings’ must be passed as a Map in the format: %{key: value}
Specs
list_classes :: [binary]
Lists all instance classes/tiers for the given cloud provier’s SQL service.
Specs
list_databases(instance :: binary) ::
[binary] |
binary
Lists all the available databases in the given ‘instance’.
Specs
list_instances :: [tuple] | [] | binary
Lists all database instances for the given cloud credentials. The function returns a list of tuples with the following format: {instance_name, region, address, status, allocated_storage}