Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Simon
@dersmon@hachyderm.io  ·  activity timestamp 3 weeks ago

Is anyone on here that has combined #elixirlang, ecto schemas[1] and @couchdb? Any patterns you came up with? Care to share notes? heart_cyber

[1] https://hexdocs.pm/ecto/Ecto.Schema.html

  • Copy link
  • Flag this post
  • Block
Raúl Chouza
@chouzar@wandering.shop replied  ·  activity timestamp 3 weeks ago
@dersmon while it is possible to write an adapter, I think Ecto integration with non-SQL databases is generally discouraged.

In those cases I much rather write to the DB driver directly or write a small abstraction for my use case.

The elixir forums at https://elixirforum.com may hold interesting discussions on those topics.

  • Copy link
  • Flag this comment
  • Block
matthisradke
@matthisradke@fosstodon.org replied  ·  activity timestamp 3 weeks ago
@chouzar I think the question was specifically about Ecto _schemas_

@dersmon I used Ecto schemas succesfully in conjuction with document oriented approaches. This is not specific to Couch though. Specifically I‘m using https://hexdocs.pm/ecto/embedded-schemas.html and changesets to ensure data integrity.

To interface with CouchDB I used couchbeam or directly the REST interface.

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.1 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login