[][src]Trait rbatis_core::cursor::HasCursor

pub trait HasCursor<'c, 'q> {
    type Database: Database;
    type Cursor: Cursor<'c, 'q, Database = Self::Database>;
}

Associate Database with a Cursor of a generic lifetime.


The upcoming Rust feature, Generic Associated Types, should obviate the need for this trait.

Associated Types

type Database: Database

type Cursor: Cursor<'c, 'q, Database = Self::Database>

The concrete Cursor implementation for this database.

Loading content...

Implementors

impl<'c, 'q> HasCursor<'c, 'q> for MySql[src]

type Database = MySql

type Cursor = MySqlCursor<'c, 'q>

impl<'c, 'q> HasCursor<'c, 'q> for Sqlite[src]

type Database = Sqlite

type Cursor = SqliteCursor<'c, 'q>

impl<'s, 'q> HasCursor<'s, 'q> for Postgres[src]

type Database = Postgres

type Cursor = PgCursor<'s, 'q>

Loading content...