spinSql

Execute an SQL query until it succeeds.

Note: If there are any errors in the query it will go into an infinite loop.

  1. auto spinSql(Duration timeout, Duration minTime, Duration maxTime, string file, size_t line)
    spinSql
    (
    alias query
    alias logFn = logger.warning
    )
    (
    Duration timeout
    ,
    Duration minTime = 50.dur!"msecs"
    ,
    Duration maxTime = 150.dur!"msecs"
    ,
    const string file = __FILE__
    ,
    const size_t line = __LINE__
    )
  2. auto spinSql(string file, size_t line)

Meta