Peter Solnica

Results 573 comments of Peter Solnica

So, been thinking about this and realized it's something we want to do in rom 5.0 / rom-sql 3.0.

@paddor no, but it's very likely it'll be addressed in rom 6.0.0 and rom-sql 4.0

I allowed myself to move this issue to the rom repository, because it's going to be a core feature and it will Just Work™ in rom-sql. This is now scheduled...

> This is very annoying when building queries, because you have to remember to use the persistence layer name each time you use an aliased attribute. This can be hidden...

> I think it is similar to what currently is happening with this slightly modified example I reported https://github.com/rom-rb/rom/issues/529 about this > Probably, if we implement the proposed feature, it...

@dsisnero we'll get to this eventually!

Why not just define a method: ``` ruby class Relation < ROM::Relation[:sql] schema :users do attribute :attr_1, Types::Integer attribute :attr_2, Types::Integer end def diff self[:attr_1] - self[:attr_2] end end #...

Please provide an executable script that reproduces the problem

@dede999 thanks for offering help. I gotta be honest though - this is one of the biggest and most difficult tasks scheduled for 6.0.0. I'm not sure if it's a...

Thanks for reporting this. It's been on my radar as it's a general issue of having reserved names that cannot be used as relation names. This will be properly addressed...