Coder Social home page Coder Social logo

Comments (10)

karmi avatar karmi commented on June 17, 2024

I've started work on the "persistence" layer for this, it's not yet finished, ETA in couple of weeks. There's a discussion in #4.

from elasticsearch-rails.

xinuc avatar xinuc commented on June 17, 2024

Great!

from elasticsearch-rails.

karmi avatar karmi commented on June 17, 2024

The working version of the repository pattern implementation added in #71.

from elasticsearch-rails.

xinuc avatar xinuc commented on June 17, 2024

Great work there!

A question though, what is the use case for each pattern?
Should I use the Repository pattern? (the API doesn't quite feel right for me),
or should I wait for the ActiveRecord pattern?

I really wish the DSL mimics something like mongoid's.

from elasticsearch-rails.

karmi avatar karmi commented on June 17, 2024

The notation you have originally described is indeed typical for the ActiveRecord-like patterns. That is not yet implemented, so if you want to do that, you have to wait for it to be coded (should be released in couple of weeks).

from elasticsearch-rails.

xinuc avatar xinuc commented on June 17, 2024

Thanks.

Is the ActiveRecord pattern implemented on top of the Repository Pattern?

I still don't understand the use case of the Repository Pattern.

from elasticsearch-rails.

xinuc avatar xinuc commented on June 17, 2024

Ah, one more thing.

Will the AR like pattern use ActiveModel and works seamlessly with form helper etc?

Thanks.

from elasticsearch-rails.

karmi avatar karmi commented on June 17, 2024

Yes, that's the main motivation, to be a drop-in replacement for ActiveRecord::Base based models.

from elasticsearch-rails.

pepe avatar pepe commented on June 17, 2024

This look really nice, thank you!

from elasticsearch-rails.

karmi avatar karmi commented on June 17, 2024

Closing this, let's centralize the discussion in #78.

from elasticsearch-rails.

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.