Property | Type | Description | |
---|---|---|---|
$arr_kind_mappers | An array of Mappers, keyed on Entity Kind | ||
$obj_last_response | object | null | The last response - usually a Commit or Query response | |
$obj_schema | The current Schema | ||
$str_dataset_id | string | null | The dataset ID | |
$str_namespace | string | null | Optional namespace (for multi-tenant applications) | |
$str_next_transaction | null | string | The transaction ID to use on the next commit |
Method | Description | |
---|---|---|
beginTransaction ( boolean $bol_cross_group = FALSE ) : mixed | Start a transaction | |
delete ( |
Delete an Entity | |
deleteMulti ( array $arr_entities ) : mixed | Delete 1-many entities | |
fetchById ( $int_key_id ) : mixed | Fetch one entity by Key ID | |
fetchByIds ( array $arr_key_ids ) : array | Fetch one or more entities by KeyID | |
fetchByName ( $str_key_name ) : mixed | Fetch entity data by Key Name | |
fetchByNames ( array $arr_key_names ) : array | Fetch one or more entities by KeyName | |
getEndCursor ( ) : mixed | Get the end cursor from the last response | |
gql ( string $str_gql, null | array $arr_params = null ) : mixed | Fetch some Entities, based on the supplied GQL and, optionally, parameters | |
put ( |
Put a single Entity into the Datastore | |
putMulti ( array $arr_entities ) | Put an array of Entities into the Datastore | |
withSchema ( |
Set the Schema to be used next (once?) | |
withTransaction ( $str_transaction_id ) | Set the transaction ID to be used next (once) |
Method | Description | |
---|---|---|
configureObjectValueParamForQuery ( object $obj_val, object $mix_value ) | Configure a Value parameter, based on the supplied object-type value | |
configureValueParamForQuery ( $obj_val, $mix_value ) | Part of our "add parameters to query" sequence. | |
createMapper ( ) : |
Create a mapper that's right for this Gateway | |
determineMapper ( |
Determine Mapper (early stage [draft] support for cross-entity upserts) | |
ensureSchema ( |
Default Kind & Schema support for "new" Entities | |
extractAutoIDs ( ) : array | Extract Auto Insert IDs from the last response | |
fetchByKeyPart ( array $arr_key_parts, $str_setter ) : mixed | Fetch 1-many Entities, using the Key parts provided | |
mapAutoIDs ( array $arr_auto_id_requested ) | Record the Auto-generated Key IDs against the GDS Entities. | |
upsert ( array $arr_entities ) : |
Put an array of Entities into the Datastore. Return any that need AutoIDs |
abstract public beginTransaction ( boolean $bol_cross_group = FALSE ) : mixed | ||
$bol_cross_group | boolean | |
return | mixed |
abstract protected configureObjectValueParamForQuery ( object $obj_val, object $mix_value ) | ||
$obj_val | object | |
$mix_value | object |
protected configureValueParamForQuery ( $obj_val, $mix_value ) | ||
$obj_val | ||
$mix_value |
abstract protected createMapper ( ) : |
||
return |
abstract public deleteMulti ( array $arr_entities ) : mixed | ||
$arr_entities | array | |
return | mixed |
protected determineMapper ( |
||
$obj_gds_entity | ||
return |
protected ensureSchema ( |
||
$arr_entities |
abstract protected extractAutoIDs ( ) : array | ||
return | array |
public fetchByIds ( array $arr_key_ids ) : array | ||
$arr_key_ids | array | |
return | array |
abstract protected fetchByKeyPart ( array $arr_key_parts, $str_setter ) : mixed | ||
$arr_key_parts | array | |
$str_setter | ||
return | mixed |
public fetchByName ( $str_key_name ) : mixed | ||
$str_key_name | ||
return | mixed |
public fetchByNames ( array $arr_key_names ) : array | ||
$arr_key_names | array | |
return | array |
abstract public getEndCursor ( ) : mixed | ||
return | mixed |
protected mapAutoIDs ( array $arr_auto_id_requested ) | ||
$arr_auto_id_requested | array |
public put ( |
||
$obj_entity |
public withSchema ( |
||
$obj_schema |
public withTransaction ( $str_transaction_id ) | ||
$str_transaction_id |
protected Mapper[],GDS $arr_kind_mappers | ||
return |
protected Schema,gds|null $obj_schema | ||
return |