1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/// Operations used with [`crate::SQLSetPos`]
#[repr(C)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub struct Operation(i16);

impl Operation {
    pub const POSITION: Operation = Operation(0);
    pub const REFRESH: Operation = Operation(1);
    pub const UPDATE: Operation = Operation(2);
    pub const DELETE: Operation = Operation(3);
}

/// Lock options in [`crate::SQLSetPos`]
#[repr(C)]
#[repr(C)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub struct Lock(i16);

impl Lock {
    pub const NO_CHANGE: Lock = Lock(0);
    pub const EXCLUSIVE: Lock = Lock(1);
    pub const UNLOCK: Lock = Lock(2);
}