Skip to content

Conversation

@tmccombs
Copy link
Contributor

@tmccombs tmccombs commented Oct 3, 2023

No description provided.

@tmccombs
Copy link
Contributor Author

tmccombs commented Oct 3, 2023

This builds on top of #85

Fix all warnings and enable fatal warnings.

Also remove the dependency on scala-compat.

This is mostly backwards compatible, but won't work with versions of scala before 2.13.

It also adds an implicit conversion from SqlRow => A to RowParser[A], which allows continuing
to pass in a function as the argument instead of an implicit RowParser, but might be subtly
different in some cases.
def asCollection[U, T[_]](parser: SqlRow => U)(implicit factory: Factory[U, T[U]], connection: Connection): T[U] =
normalStatement.execute(_.asCollection(parser))
def asCollection[U: RowParser, T[_]]()(implicit factory: Factory[U, T[U]], connection: Connection): T[U] =
// def asCollection[U, T[_]](parser: SqlRow => U)(implicit factory: Factory[U, T[U]], connection: Connection): T[U] =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why leave these commented out? why not just delete them?

@tmccombs tmccombs merged commit f3f9cf9 into master Feb 3, 2025
3 checks passed
@tmccombs tmccombs deleted the build-warnings branch February 3, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants