Here are some questions that have a potential to become frequently asked.
I have plenty of time, I don't want to use any timeout for any of my queries. What can I do?
Timeoutinstance of infinite duration —
How do I build SQL dynamically using
#$prefix for the dynamic parts. See this paragraph for details.
How to pass
executeForKeymethod? I keep getting compilation errors.
executeForKeymethod's declaration is
def executeForKey[K: ClassTag]()(implicit timeout: Timeout): Future[K]
Under the hood, this declaration really means this:
def executeForKey[K]()(implicit classTag: ClassTag[K], timeout: Timeout): Future[K]
So you can't really execute this method like this:
Instead, you have to do this:
I'm executing insert statement and trying to get auto-generated key from the DB but nothing is returned. What am I doing wrong?
You probably forgot to set a
generatedKeyColsstatement option accordingly. See this paragraph for details.