parseDollarTag extracts a dollar-quote tag starting at position i. Returns the full tag (e.g., "$$" or "$tag$") and true, or ("", false).
(s string, i int)
| 1749 | // so the session state never diverges from the TTL the worker will |
| 1750 | // actually park with. |
| 1751 | if result.WorkerTTLSet != nil { |
| 1752 | // Lazy activation: like duckgres.s3_cache this is WORKER state (the |
| 1753 | // control plane's pool record for the bound worker), so it must have |
| 1754 | // a worker to apply to. Not a pinning statement, so it acquires the |
| 1755 | // exploratory worker. |
| 1756 | if err := c.activateForStatement(query, false); err != nil { |
| 1757 | return err |
| 1758 | } |
| 1759 | if err := c.applyWorkerTTLSetting(*result.WorkerTTLSet); err != nil { |
| 1760 | c.sendError("ERROR", workerTTLApplyErrorSQLState(err), err.Error()) |
| 1761 | } else { |
| 1762 | _ = c.writeCommandComplete("SET") |
| 1763 | } |
| 1764 | _ = c.writeReadyForQuery(c.txStatus) |
| 1765 | _ = c.flushWriter() |
| 1766 | return nil |
| 1767 | } |
| 1768 | if result.WorkerTTLShow { |
| 1769 | // No lazy activation: the connect-time baseline (or the built-in |
| 1770 | // default) is the truthful answer until a worker exists — there is no |
| 1771 | // pending worker-side state the way a connect-time s3_cache=off is. |
| 1772 | _ = c.sendRowDescription([]string{WorkerTTLGUCName}, []ColumnTyper{staticColumnType("VARCHAR")}) |
no outgoing calls
no test coverage detected