Debug returns a new debug-client. It's used to get verbose logging on specific operations. client.Debug(). Alert. Query(). Count(ctx)
()
| 220 | // Query(). |
| 221 | // Count(ctx) |
| 222 | func (c *Client) Debug() *Client { |
| 223 | if c.debug { |
| 224 | return c |
| 225 | } |
| 226 | cfg := c.config |
| 227 | cfg.driver = dialect.Debug(c.driver, c.log) |
| 228 | client := &Client{config: cfg} |
| 229 | client.init() |
| 230 | return client |
| 231 | } |
| 232 | |
| 233 | // Close closes the database connection and prevents new queries from starting. |
| 234 | func (c *Client) Close() error { |
no test coverage detected