eureka-network / rs-eureka

Eureka sink
0 stars 0 forks source link

Adds cursors db operation interface #50

Closed jorgeantonio21 closed 1 year ago

jorgeantonio21 commented 1 year ago

The interface follows:

pub trait CursorLoader {
    fn get_cursor(&mut self, output_module_hash: String) -> Result<Cursor, DBError>;
    fn update_cursor_query(
        &mut self,
        module_hash: String,
        cursor: Cursor,
    ) -> Result<usize, DBError>;
    fn write_cursor(&mut self, module_hash: String, cursor: Cursor) -> Result<usize, DBError>;
}