question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support custom mappers for projections with more than 22 columns

See original GitHub issue

Is it a normal behavior that for queries with a LEFT OUTER JOIN, generated code does not give access to the custom mapper ?

Example :

select_news_with_picture_from_id:
SELECT *
FROM news
LEFT OUTER JOIN author ON news.authorId = author.id
WHERE
news.apiId = ?;

Generated code:

database.newsQueries.select_news_with_picture_from_id(newsId)
               .asObservable()
               .mapToOneNonNull()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
benasher44commented, Oct 25, 2019

It’s fixed in Kotlin 1.3.60, which is not released

2reactions
JakeWhartoncommented, Aug 14, 2019

“Abitrary Arity” is the name of my punk rock band

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support custom mappers for projections with more than 22 ...
We are moving from SqlDelight 0.7.1 and SqlDelight 1.1.3 doesn't serve well in case if we have at least one JOIN (around 25...
Read more >
Custom mapping to nested case class structure in Slick (more ...
I'm trying to map a DB row with more than 22 columns to a case class tree. I'd rather not using HList as...
Read more >
Spring Data JPA: Query Projections - Thorben Janssen
Use a DTO projection, which selects a custom set of database columns. It uses them to call a constructor and returns one or...
Read more >
The best way to map a projection query to a DTO (Data ...
If you are only interested in a DTO projection, it's more efficient to select only the columns that are really needed by the...
Read more >
Custom Columns Mapping - Dapper .NET - Medium
Custom mapping is the feature that Dapper offers to manually define, for each object, which column is mapped to which property.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found