Giter Site home page Giter Site logo

range key for dynamodb about ex_aws HOT 6 CLOSED

ex-aws avatar ex-aws commented on June 18, 2024
range key for dynamodb

from ex_aws.

Comments (6)

benwilson512 avatar benwilson512 commented on June 18, 2024

Ah so at the moment I have create_table/5 which takes a single binary representing a hash based primary key, and create_table/7 that takes a list of key definitions and supports ranges. I should probably have a create_table/5 that takes key definitions to support ranges as well. On it.

from ex_aws.

benwilson512 avatar benwilson512 commented on June 18, 2024

Oh actually I already have that implemented, and my typespec is out of date.

from ex_aws.

benwilson512 avatar benwilson512 commented on June 18, 2024

See https://github.com/CargoSense/ex_aws/blob/master/lib/ex_aws/dynamo/client.ex#L167

from ex_aws.

jschoch avatar jschoch commented on June 18, 2024

seems to be having issues encoding, both fail

#tbl = Dynamo.create_table(@t_name,[id: :hash,r: :range],[id: :string,r: :string], 1, 1)
tbl = Dynamo.create_table(@t_name,[id: :hash],[id: :string], 1, 1)

** (Poison.EncodeError) unable to encode value: {:id, :hash}
             lib/poison/encoder.ex:213: Poison.Encoder.Any.encode/2
             lib/poison/encoder.ex:169: Poison.Encoder.List.encode/2
             lib/poison/encoder.ex:156: anonymous fn/4 in Poison.Encoder.Map.encode/2
    (stdlib) lists.erl:1261: :lists.foldl/3
             lib/poison/encoder.ex:157: Poison.Encoder.Map.encode/2
             lib/poison.ex:41: Poison.encode!/2
             lib/ex_aws/request.ex:16: ExAws.Request.request/5
             lib/ex_aws/dynamo/request.ex:11: ExAws.Dynamo.Request.request/3

from ex_aws.

benwilson512 avatar benwilson512 commented on June 18, 2024

Are you on master? I haven't pushed a hex update yet.

from ex_aws.

jschoch avatar jschoch commented on June 18, 2024

oops, that was it, sry

from ex_aws.

Related Issues (20)

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.