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

ios - Fragment Shader GLSL for texture, color and texture/color -

iphone - Dismissing a UIAlertView -

java - Does anyone know the name of this "LookAndFeel"? -