inouet / kettle Goto Github PK
View Code? Open in Web Editor NEWKettle is a lightweight object-dynamodb mapper for PHP.
License: MIT License
Kettle is a lightweight object-dynamodb mapper for PHP.
License: MIT License
Currently, this software supports only AWS SDK version 2.x.
@inouet Love the package, clean and follows good strict guidelines. But i am struggling to see why we limit data being returned unless it is defined in the schema. The whole point of noSql data is that everything and anything is returned - return whatever you have got for that record. Mantaining a schema means we may as well use a structured database?
These two conditions for filtering should not have any extra attributes sent with them. The build conditions can be changed to check for condition2 being present - this allows us to call as follows:
->filter('column', 'NULL', false)
public function _buildConditions($conditions)
{
$result = array();
foreach ($conditions as $i => $condition) {
$key = $condition[0];
$operator = $condition[1];
$attributes = array();
if ($condition[2] !== false) {
$value = $condition[2];
if (!is_array($value)) {
$value = array((string) $value);
}
foreach ($value as $v) {
$attributes[] = array($this->_getDataType($key) => (string) $v);
}
}
$result[$key] = array(
'ComparisonOperator' => $operator,
'AttributeValueList' => $attributes,
);
}
return $result;
}
Sorry if i missed this but how do I include a namespaced model?
In dynamodb we can use page size, so with this package can I sent page size?
aws dynamodb query --table-name Movies \
--projection-expression "title" \
--key-condition-expression "#y = :yyyy" \
--expression-attribute-names '{"#y":"year"}' \
--expression-attribute-values '{":yyyy":{"N":"1993"}}' \
--page-size 5 \
--debug
Hi,
Can you use this:
https://docs.aws.amazon.com/aws-sdk-php/v2/api/class-Aws.DynamoDb.Marshaler.html
$marshaler = new Marshaler();
return $marshaler->unmarshalItem($item);
in "_formatResult " function for formatting array?
Hi there!!! Is there a way to config kettle on a global way?
Really good work!! Thanks in advance.
Cheers from Brazil.
Is there anyway for Kettle to get the AWS credentials from environment variables like the iam or env vars?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.