#[non_exhaustive]#[repr(u16)]pub enum ProcId {
Show 15 variants
Cursor = 1,
CursorOpen = 2,
CursorPrepare = 3,
CursorExecute = 4,
CursorPrepExec = 5,
CursorUnprepare = 6,
CursorFetch = 7,
CursorOption = 8,
CursorClose = 9,
ExecuteSql = 10,
Prepare = 11,
Execute = 12,
PrepExec = 13,
PrepExecRpc = 14,
Unprepare = 15,
}Expand description
Well-known stored procedure IDs.
These are special procedure IDs that SQL Server recognizes without requiring the procedure name.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cursor = 1
sp_cursor (0x0001)
CursorOpen = 2
sp_cursoropen (0x0002)
CursorPrepare = 3
sp_cursorprepare (0x0003)
CursorExecute = 4
sp_cursorexecute (0x0004)
CursorPrepExec = 5
sp_cursorprepexec (0x0005)
CursorUnprepare = 6
sp_cursorunprepare (0x0006)
CursorFetch = 7
sp_cursorfetch (0x0007)
CursorOption = 8
sp_cursoroption (0x0008)
CursorClose = 9
sp_cursorclose (0x0009)
ExecuteSql = 10
sp_executesql (0x000A) - Primary method for parameterized queries
Prepare = 11
sp_prepare (0x000B)
Execute = 12
sp_execute (0x000C)
PrepExec = 13
sp_prepexec (0x000D) - Prepare and execute in one call
PrepExecRpc = 14
sp_prepexecrpc (0x000E)
Unprepare = 15
sp_unprepare (0x000F)
Trait Implementations§
impl Copy for ProcId
impl Eq for ProcId
impl StructuralPartialEq for ProcId
Auto Trait Implementations§
impl Freeze for ProcId
impl RefUnwindSafe for ProcId
impl Send for ProcId
impl Sync for ProcId
impl Unpin for ProcId
impl UnsafeUnpin for ProcId
impl UnwindSafe for ProcId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more