Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/hanami/model

Ruby persistence framework with entities and repositories
https://github.com/hanami/model

DRY Implementation internals

cfe6eb7b8e16a700a8b242f595e9e8580038e73f authored over 10 years ago by Luca Guidi <[email protected]>
Moved UnmappedCollectionError under a separated file

0936848d77ef43ef83f41fc0395d3b3a12bae933 authored over 10 years ago by Luca Guidi <[email protected]>
Removed serialization responsibility from Mapper

b6e49ff89e5de03fdedd80dec1099d25b005e45e authored over 10 years ago by Luca Guidi <[email protected]>
Removed unnecessary conditional in test

9057fbd26ec8e5fbbc4bb6c3b08c8998e09ea48c authored over 10 years ago by Luca Guidi <[email protected]>
Renamed Lotus::Model::Mapping::Collection#key into #identity

43c462f9e4b4a350ac252f980af3bdb2c761b2e4 authored over 10 years ago by Luca Guidi <[email protected]>
Removed serialization responsibility from Sql::Command

af590393616b7f5f478c4f67ecc43d121753a23d authored over 10 years ago by Luca Guidi <[email protected]>
Removed deserialization responsibility from Sql::Query

92101bb8c37c0bb633824c0e8549107689300599 authored over 10 years ago by Luca Guidi <[email protected]>
Rewritten Sql::Command, it now works on scoped queries

04e959763915f682102435a3ad1885122a76f8f8 authored over 10 years ago by Luca Guidi <[email protected]>
Coerce with the right type the primary key for Repository.find

eb497467a3538e6893ed1df1cca154ee0f9cb9cb authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Command for mutation actions such as insert, update, delete. Removed serialization responsibility to the adapter. Removed unused code.

daf3e041cff13c76ebd92facfafdedc42b2a7b5f authored over 10 years ago by Luca Guidi <[email protected]>
Sql and Memory adapter are now using Query to serve #all, #find, #first, #last

5ae8b1197309a00bb97ccbaed1f39f8ed6bda512 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#asc and #desc

b0a35c5b08f514301c5ea84af2d5592eaf323666 authored over 10 years ago by Luca Guidi <[email protected]>
Make querying thread safe for MemoryAdapter

ef2d1fa21d5520cd537222482da885706597f106 authored over 10 years ago by Luca Guidi <[email protected]>
DRY internals of Memory::Query

2bfd4352036b115024623d68637eabfe0ba37853 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#select

db7e69974779fc38f7dacc108fa2a7e133b15232 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#exist?

2d83581ec6d2961c877873b2c27b64da75e315b2 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#exclude

13cfde0fb666f960d380f64f0f247d7d93423999 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#range

79596de44f3a21f116cfab552f71a7b8333e2112 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#interval

70df238e44b2797809ca243b36c2c640ab8e6b78 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#min

a0cbb8c37c4968d0c84c160266d5effa7c1eb489 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#max

41e3d69f75983736fc5a325335e0d84c9b79b6bf authored over 10 years ago by Luca Guidi <[email protected]>
Changed the semantic of Query#average: let return a float if needed, handle strings and nil values

5577283119e7ee83e24899088a7027fdb795bbd0 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#sum

3e1bddc6c39a93955b7d43e4a5fc410d8b84e7f0 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Lotus::Model::Adapters::Memory::Query#average

97d0fb9b0b9b7381842df29c65aa5541d2ad8426 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Lotus::Model::Adapters::Sql::Query#average

d7068b5f482ee24add2633b20c980f7a822c61ee authored over 10 years ago by Luca Guidi <[email protected]>
Introduced Sql::Query

21abc27fcdc3b452504b49a86130ecafd48f5611 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Memory::Query#count

7b63b7f97f4c31b3f181cd3e03e78d3d4c65a64e authored over 10 years ago by Luca Guidi <[email protected]>
Make the results of Repository queries lazy

517a89acaf404845331a1df19cc1e9f8091f1eab authored over 10 years ago by Luca Guidi <[email protected]>
Renamed adapters with the "Adapter" suffix, in order to keep namespaces free.

Example:

Lotus::Model::Adapters::Memory => Lotus::Model::Adapters::MemoryAdapter

In this way...

e6a756c689ab52ffabf7c94f83d1832398134970 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Query#or, #limit and #offset

8a076b955d66762854b9613b7d95921749c37e66 authored over 10 years ago by Luca Guidi <[email protected]>
Added tests for SQL adapter and implemented #where, #and and #order for all the adapters

388957d13e44369b0ede9080193bef6461e85bbf authored almost 11 years ago by Luca Guidi <[email protected]>
FIXME note

e710df67a731ecc7a55915900a7121e6764cb7c9 authored almost 11 years ago by Luca Guidi <[email protected]>
Initial design for quering the datasource

5a97c12240866f7198f1f180478dc734630d3564 authored almost 11 years ago by Luca Guidi <[email protected]>
Use Lotus::Utils::Kernel conversions

6f804db453c4a704b884366f49ee0c9c0af214f3 authored almost 11 years ago by Luca Guidi <[email protected]>
Allow the mapper to specify the primary key of a collection with

Lotus::Model::Mapper::Collection#key.

Allow the mapper to transcode attribute names from origina...

4ae696723fe0c4475d9620c5513323237dff554d authored almost 11 years ago by Luca Guidi <[email protected]>
Extracted Lotus::Model::Adapters::Memory::Collection::PrimaryKey

85def40cc83f50f3b421648bf51c573d13cf874c authored almost 11 years ago by Luca Guidi <[email protected]>
Lotus::Repository.collection is now configured by the framework internals.

It uses the mapper to determine which collection the repository is
referring to. For now, there ...

ff8d6d4c8756dd96cf26bcf72bef2d827768d661 authored almost 11 years ago by Luca Guidi <[email protected]>
Introduced attributes mapping and (de)serializations policies based on it.

122e0407b80134b2c167de6c90629b1a2c901c80 authored almost 11 years ago by Luca Guidi <[email protected]>
Lotus::Entity#id is always the primary key

f925ebc423a6261970455846f494a93399a4d257 authored almost 11 years ago by Luca Guidi <[email protected]>
Introduced Lotus::Model::Adapters::Sql

0bf8bb5cb9495992953edf5aa9c0de01540450d4 authored almost 11 years ago by Luca Guidi <[email protected]>
Lotus::Model::Repository => Lotus::Repository

cfbed99d653de6b0da9a9263c3be201a6b62f71f authored almost 11 years ago by Luca Guidi <[email protected]>
Lotus::Model::Entity => Lotus::Entity

3a72d68df1a30a0976d26d77fc746d9b797a322e authored almost 11 years ago by Luca Guidi <[email protected]>
Preload Lotus::Model::Repository

ed29d2ddb47dd32a050b65e403698c5a291171bc authored almost 11 years ago by Luca Guidi <[email protected]>
Improved tests and better semantic for Lotus::Model::Repository

f1bda7fcf8025510568d7aaf0799d4ec649dcfa4 authored almost 11 years ago by Luca Guidi <[email protected]>
Tests and thready safety for Lotus::Model::Adapters::Memory

65b8e1a3d2daac4e96197c3cca1e274fe13bf528 authored almost 11 years ago by Luca Guidi <[email protected]>
When generate Entity#initialize use class attribute 'attributes', instead of the homonym argument

63d9fc52695b02272fcce82e63080b8ab722125f authored almost 11 years ago by Luca Guidi <[email protected]>
Gemfile dependencies

d64e17698c27ba6f1fb0644d4f415aa9b49fbe45 authored almost 11 years ago by Luca Guidi <[email protected]>
Lotus::Model::Repository.find raises a Lotus::Model::RecordNotFound exception if it can't find a record, associated with the given ID

442987d6306ad554d0254aea98e57f7347a1d16f authored almost 11 years ago by Luca Guidi <[email protected]>
Ensure memory adapted is able to find a record for a string id

c2b94e00664d741f40cc0b06e1e959f02ae8b6b3 authored almost 11 years ago by Luca Guidi <[email protected]>
Gemspec

278f898e113d9f5888bedb0a91f6be03d4d820fd authored almost 11 years ago by Luca Guidi <[email protected]>
Make Repository to work with entities

b258ea0bccdd1a19f4a1dc73192247629d6389b6 authored almost 11 years ago by Luca Guidi <[email protected]>
Implemented Entity

0371b41efc5161c15cd6c8e242b8117b2bf96f30 authored almost 11 years ago by Luca Guidi <[email protected]>
Renamed "object" in "entity" in method signatures.

Repositories and adapters work on objects that are aware of the identity's concept.

"An object d...

9d2bfe3df9d5ce0c05a5b5d4957d4a494786f0ad authored almost 11 years ago by Luca Guidi <[email protected]>
Extracted Abstract adapter and made Memory to inherit from it

be0e4e0986928a076c4bfb1b8f1751f4bd66d2fd authored almost 11 years ago by Luca Guidi <[email protected]>
Let Repository to delegate operations to the current adapter

3ca28afb16182d36bea66b34ac5997cf25685480 authored almost 11 years ago by Luca Guidi <[email protected]>
Made Repository methods to accept one object instead of a collection

3318bd163b20c53d0890038aaa8cea745e5c5882 authored almost 11 years ago by Luca Guidi <[email protected]>
Implemented Repository.delete

baf378a114af03b667f55e8cf297027a492268eb authored almost 11 years ago by Luca Guidi <[email protected]>
Implemented Repository.persist, .create and .update

1b8c0a0f538c5fec669e9f2787dce02bf3383916 authored almost 11 years ago by Luca Guidi <[email protected]>
Implemented Repository.find

c6bde87ea6c5d7fee7c5e7fac6138478e6ad0266 authored almost 11 years ago by Luca Guidi <[email protected]>
Initial mess

f41eab217a17b482e13eb0b9403d1775fdae68e6 authored almost 11 years ago by Luca Guidi <[email protected]>
Initial mess

4bbcb33852480183f68e415472b930bf535ca300 authored almost 11 years ago by Luca Guidi <[email protected]>
Initial mess

a45248fdc6dd4623e3ad3f5ae8730ba3b78c11f0 authored almost 11 years ago by Luca Guidi <[email protected]>