rom-sql icon indicating copy to clipboard operation
rom-sql copied to clipboard

SQL support for rom-rb

Results 64 rom-sql issues
Sort by recently updated
recently updated
newest added

**Describe the bug** If you have a `belongs_to` association where the foreign key attribute has been aliased, the association is always loaded as `nil` even when the foreign key attribute...

bug
associations

**Describe the bug** When using `Relation#each_batch`, if you pass in a relation that already has a limit applied, `Relation#each_batch` will not respect it and process the batches as if the...

bug

I have an issue where using `wrap` and `combine` together causes the error: ``` wrong number of arguments (given 3, expected 2) (ArgumentError) ``` However, if I use two combines,...

bug
help wanted

Hi! This issue was extracted from the gitter discussion, here is [the link](https://gitter.im/rom-rb/chat?at=5996a4b980d90ca0240fe4b5). The following example will tell better than I will. ```ruby class Eans < ROM::Relation[:sql] schema(:eans, infer: true)...

help wanted
feature

rom v4.1.3 I ran into a similar issue to this https://discourse.hanamirb.org/t/select-clause-in-a-repository/396/4 I don't have a repo script yet but I was trying to combine two relations and edit one of...

bug
unconfirmed

Using the gist provided below, ROM doesn't combine `buildings` correctly. The query result is empty even though the SQL query was correct. ``` [ # ] ``` However, if you...

bug
unconfirmed

Hi, I have the following simple relations, a `user` has many `tasks` throught `users_tasks`. The following code in the `UserRepo` will work fine ``` user1 = users.changeset(:create, new_users.first) command =...

bug
unconfirmed

Association from sql relation to memory relation does not seem to work. ```ruby config.relation(:companies) do # default adapter is sql schema(:companies, infer: true) do associations do belongs_to :market_data, foreign_key: :symbol,...

bug

I'm using rom as ORM with Hanami. Recently, I noticed that sometimes server hanged up raising SystemStackError. I dug into stack trace, and found that `auto_curry` method was called too...

Introduced in https://github.com/rom-rb/rom-sql/commit/869b46be Steps to repro: ``` ruby require 'rom' require 'rom-sql' require 'rom-repository' module Relations class Users < ROM::Relation[:sql] schema(:users, infer: true) end end class UserRepository < ROM::Repository[:users] def...

bug