Skip to content

Adding timeout to queries #6

@borgarlie

Description

@borgarlie

Hi,

We are currently trying out Terpal, and are wondering if there is a way to add timeout to queries?

E.g. kotlinquery supports a queryTimeout when generating sessions.

fun sessionOf(
    url: String,
    user: String,
    password: String,
    returnGeneratedKey: Boolean = false,
    strict: Boolean = false,
    queryTimeout: Int? = null
): Session

This is very useful, as we don't want to use the default database timeout for all our queries.

I have looked around briefly, but couldn't find anything obvious in Terpal so far.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions