perpetuity icon indicating copy to clipboard operation
perpetuity copied to clipboard

Persistence gem for Ruby objects using the Data Mapper pattern

Results 12 perpetuity issues
Sort by recently updated
recently updated
newest added

All the major SQL and a few NoSQL databases support `JOIN` queries. Currently, there is nothing in here to support them. Everything is queried like we're doing an ActiveRecord `includes`...

Looking at the query serialization for both the MongoDB and Postgres adapters, there is a _lot_ of similarity (the `QueryAttribute` classes are nearly identical) and I think a lot of...

Hi , I am trying to run rake test:benchmark which works with ActiveRecod but when I use it with Perrpetuity gem I get uninitialized constant Perpetuity::RailsModel (NameError). I tried adding...

Hello there, I have created a Project class and saved a couple of objects to the database. Those projects have attributes like delivery_deadline. Now created a class Document and instantiated...

Is there any way to map an object property to a table column with different name ? Same thing for tables ? Do you plan to have this feature ?...

This code: ``` ruby require 'perpetuity/postgres' Perpetuity.data_source 'postgres://localhost/perpetuity_gem_test' class Foo def initialize @bar = Bar.new(self) end end class Bar def initialize foo @foo = foo end end Perpetuity.generate_mapper_for Foo do...

If a user has a mailbox which has thousands of messages in it, loading all of them is a huge waste when they are likely to only view the latest...

Going straight from PORO to database-serialized form is hard to generalize, so I think we need an intermediate serialization layer, which will allow the serializer to be pulled out of...

In document databases like MongoDB, it's common practice to abbreviate keys in objects to reduce the size of its footprint. We can support that without forcing users to abbreviate attribute...

We assume that object state is stored in instance variables, so we don't go in via accessor methods — using accessor methods might modify state, trigger API calls, etc. Using...