Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

First extension for RichConnection #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

First extension for RichConnection #22

wants to merge 2 commits into from

Conversation

muuki88
Copy link

@muuki88 muuki88 commented May 20, 2013

This is the first part to customize java.sql.Statement creation. Next step would be to allow something like this.

tx.select("SELECT * FROM table01") { row =>
   // process row
}  { stmt => 
   stmt.setFetchSize(Integer.MIN_VALUE)
}

or with ordering

tx.select("SELECT * FROM table01") (
 customize =   { stmt => 
   stmt.setFetchSize(Integer.MIN_VALUE)
 },
 block = { row =>
   // process row
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant