odbc_ffi/fetch_orientation.rs
1/// Codes used for FetchOrientation in `SQLFetchScroll`, `SQLDataSources` and in `SQLDrivers`
2#[repr(u16)]
3#[allow(non_camel_case_types)]
4#[derive(Debug, PartialEq, Eq, Clone, Copy)]
5pub enum FetchOrientation {
6 SQL_FETCH_NEXT = 1,
7 SQL_FETCH_FIRST = 2,
8 // Other codes used for FetchOrientation in SQLFetchScroll()
9 SQL_FETCH_LAST = 3,
10 SQL_FETCH_PRIOR = 4,
11 SQL_FETCH_ABSOLUTE = 5,
12 SQL_FETCH_RELATIVE = 6,
13 // additional SQLDataSources fetch directions
14 SQL_FETCH_FIRST_USER = 31,
15 SQL_FETCH_FIRST_SYSTEM = 32,
16}
17pub use self::FetchOrientation::*;
18