scala - Raw result rows with named fields in ScalaQuery? -



scala - Raw result rows with named fields in ScalaQuery? -

in scalaquery, can work "raw" result rows:

for ( x <- queryna[(string,int)]("select * foo")( getresult(r => (r.<<[string], r.<<[int])) ) ) { println(x) }

but exclusively positional (r positionedresult). there way work results using column names? (e.g., row.getstring("foo").)

i utilize db api supports this, querulous, i'm using scalaquery in code type-safe queries, , stick 1 library if possible.

from scalaquery mailing list: can underlying resultset r.rs.

scala scalaquery

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -