1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use {
crate::{AutoIncrement, ODBCDatabase, Result},
async_trait::async_trait,
};
#[async_trait(?Send)]
impl AutoIncrement for ODBCDatabase {
async fn generate_increment_values(
&mut self,
_table_name: String,
columns: Vec<(usize, String, i64)>,
) -> Result<Vec<((usize, String), i64)>> {
let row_init = 1;
Ok(columns
.into_iter()
.map(|(index, name, _)| ((index, name), row_init as i64))
.collect())
}
async fn set_increment_value(
&mut self,
_table_name: &str,
_column_name: &str,
_end: i64,
) -> Result<()> {
Ok(())
}
}