execs v0.3.1 Execs.DbClient.Client behaviour
Data manipulation is handled through clients which implement this interface.
Summary
Callbacks
Create the specified number of entities and returns the ids
Delete the schema for the database
Create the tables for the database
Delete an entity and all its data
Delete a component and all its data from an entity
Delete a key from a component of an entity
Drop the tables for the database
List the entities which have a component or a set of components
List the entities which have a key or set of keys
List the entities which have certain values. This is determined by passing the value to the passed in filter function and evaluating the boolean result
List the entities which have at least one of a set of components
List the entities which have at least one of set of keys
List the entities which have at least one of a set of certain values. This is determined by passing the value to the passed in filter function and evaluating the boolean result
Check to see if one or more entities have a component or set of components
Check to see if one or more entities have a key or set of keys
Check to see if one or more entities have a value. This is determined by passing the value associated with the provided id to the passed in filter function and evaluating the boolean result
Check to see if one or more entities have a component or set of components
Check to see if one or more entities have a key or set of keys
Check to see if one or more entities have a value. This is determined by passing the value associated with the provided id to the passed in filter function and evaluating the boolean result
Check to see if one or more entities have a component or set of components
Check to see if one or more entities have a key or set of keys
Check to see if one or more entities have a value. This is determined by passing the value associated with the provided id to the passed in filter function and evaluating the boolean result
List the components of an entity
List the keys belonging to a component of an entity
Read an entity or set of entities
Read a component or set of component from an entity or set of entities
Read a key or set of keys from an entity or set of entities
Take a function and execute it in the context of a transaction
Write a value to any combination of ids, components, and entities
Types
Callbacks
Create the specified number of entities and returns the ids.
Delete an entity and all its data.
Delete a component and all its data from an entity.
Delete a key from a component of an entity.
List the entities which have a component or a set of components.
List the entities which have a key or set of keys.
find_with_all(component_list, key_list, fun_list) :: id_list
List the entities which have certain values. This is determined by passing the value to the passed in filter function and evaluating the boolean result.
A true
result means that the entity which has that particular value will be
included in the results.
List the entities which have at least one of a set of components.
List the entities which have at least one of set of keys.
find_with_any(component_list, key_list, fun_list) :: id_list
List the entities which have at least one of a set of certain values. This is determined by passing the value to the passed in filter function and evaluating the boolean result.
A true
result means that the entity which has that particular value will be
included in the results.
Check to see if one or more entities have a component or set of components.
has_all(id_list, component_list, key_list) :: id_match_list
Check to see if one or more entities have a key or set of keys..
has_all(id_list, component_list, key_list, fun_list) :: id_match_list
Check to see if one or more entities have a value. This is determined by passing the value associated with the provided id to the passed in filter function and evaluating the boolean result.
Check to see if one or more entities have a component or set of components.
has_any(id_list, component_list, key_list) :: id_match_list
Check to see if one or more entities have a key or set of keys.
has_any(id_list, component_list, key_list, fun_list) :: id_match_list
Check to see if one or more entities have a value. This is determined by passing the value associated with the provided id to the passed in filter function and evaluating the boolean result.
Check to see if one or more entities have a component or set of components.
Returns a map of the results.
has_which(id_list, component_list, key_list) :: key_match_list
Check to see if one or more entities have a key or set of keys.
Returns a map of the results.
has_which(id_list, component_list, key_list, fun_list) :: key_match_list
Check to see if one or more entities have a value. This is determined by passing the value associated with the provided id to the passed in filter function and evaluating the boolean result.
List the components of an entity.
List the keys belonging to a component of an entity.
Read an entity or set of entities.
Read a component or set of component from an entity or set of entities.
Read a key or set of keys from an entity or set of entities.
Take a function and execute it in the context of a transaction.
write(id_list, component_list, key_list, any) :: id_list
Write a value to any combination of ids, components, and entities.