We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
like stream(where: SQLSyntax): DatabasePublisher[Entity]?
It's ok to have it but we should disable(=comment out) the method by default because scalikejdbc-streams is an optional module.
Sorry, something went wrong.
If so, does the DB object get inside method?
def stream(where: SQLSyntax): DatabasePublisher[Entity] = { DB.readOnlyStream { // <- use DB ? or NamedDB ? ConnectionPoolContext ? ... ? // ... } }
So I suppose that it could do about returning StreamReadySQL like #622.
object Entity extends SQLSyntaxSupport[Entity] { import scalikejdbc.streams._ def streamBy(where: SQLSyntax): StreamReadySQL[Entity] = { sql"... $where".iterator() } } // somewhere DB readOnlyStream { Entity.streamBy(sqls"groupId = 1") }
and maybe need an option like generator.streams = true.
generator.streams = true
maybe need an option like generator.streams = true
👍
@yoskhdia Your idea looks fine. 👍
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: