| 59 | #[derive(Debug, EnumKind, Clone)] |
| 60 | #[enum_kind(SefKind)] |
| 61 | pub enum SideEffectingFunc { |
| 62 | /// The `pg_cancel_backend` function. |
| 63 | PgCancelBackend { |
| 64 | // The ID of the connection to cancel, or `None` if the argument was |
| 65 | // `NULL`, in which case the function returns `NULL`. |
| 66 | connection_id: Option<u32>, |
| 67 | }, |
| 68 | } |
| 69 | |
| 70 | /// Describes a `SELECT` if it contains calls to side-effecting functions. |
| 71 | /// |