Coder Social home page Coder Social logo

php-dynamodb's Introduction

yerrr

Husband, father, technologist, writer. Christian. Brooklyn born. Afro-Latino. AWS Data Hero. Fractional CTO/VPE/Head of Engineering consultant at Kuzaa LLC. President at 757ColorCoded.

php-dynamodb's People

Contributors

gbeushausen avatar guillermoandrae avatar tekgadgt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

php-dynamodb's Issues

Handle errors better.

Instead of simple re-throwing exceptions, parse out the meaningful bits of the exception messages to create more meaningful error messages.

How do i query for more expressions rather only PK and SK?

I want to query for more attributes than just PK and SK. I have the following query, but it's only searching for PK and SK and the email attribute gets ignored:

` /**
* @var DynamoDbAdapter $adapter
*/
$adapter = $this->container->get(DynamoDbAdapter::class);

    try {
        // fetch an item from the table
        $item = $adapter->useTable("xxx")->findWhere([
            'partition' => [
                'name' => 'pk',
                'value' => 'FORM#xxx123test',
            ],
            'sort' => [
                'name' => 'sk',
                'operator' => Operators::BEGINS_WITH,
                'value' => "ENTRY#",
            ],
            'email' => [
                'name' => 'email',
                'operator' => Operators::EQ,
                'value' => "[email protected]",
            ]
        ]);

I want a result like this: return {
"TableName": "xxx",
"ScanIndexForward": true,
"ConsistentRead": false,
"KeyConditionExpression": "#c2590 = :c2590 And begins_with(#c2591, :c2591)",
"FilterExpression": "#c2592 = :c2592",
"ExpressionAttributeValues": {
":c2590": {
"S": "FORM#xxx123test"
},
":c2591": {
"S": "ENTRY#"
},
":c2592": {
"S": "[email protected]"
}
},
"ExpressionAttributeNames": {
"#c2590": "pk",
"#c2591": "sk",
"#c2592": "email"
}
}`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.