[][src]Trait sqlx::cursor::HasCursor

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

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>

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...