pub fn query<T>(&self, query: Query) -> Result<CursorSession<T, C>>
    where
        T: 'static + DeserializeOwned,
    {
        self.execute(CreateCursor::from_query(query)).map(|cursor| {
            CursorSession::new(
                cursor,
                self.database_name.clone(),
                self.connector.clone(),
                self.core.clone(),
            )
        })
    }
/// Executes a query and returns a cursor with the first result set.
///
/// All cursor options and query execution options are left to their default
/// settings.
///
/// To specify cursor options and/or query execution options use the
/// `query_opt(&self, NewCursor)` function.
Executes a query and returns a cursor with the first result set.
All cursor options and query execution options are left to their default
settings.

To specify cursor options and/or query execution options use the
`query_opt(&self, NewCursor)` function.
Executes a query and returns a cursor with the first result set . All cursor options and query execution options are left to their default settings . To specify cursor options and / or query execution options use the ` query_opt ( &self NewCursor ) ` function .
pub fn query<T>(&self, query: Query) -> Result<CursorSession<T, C>>
    where
        T: 'static + DeserializeOwned,
    {
        self.execute(CreateCursor::from_query(query)).map(|cursor| {
            CursorSession::new(
                cursor,
                self.database_name.clone(),
                self.connector.clone(),
                self.core.clone(),
            )
        })
    }
pub fn query < T > ( & self , query : Query ) -> Result < CursorSession < T , C > > where T : ' static + DeserializeOwned , { self . execute ( CreateCursor :: from_query ( query ) ) . map ( | cursor | { CursorSession :: new ( cursor , self . database_name . clone ( ) , self . connector . clone ( ) , self . core . clone ( ) , ) } ) }
Executes a query and returns a cursor with the first result set.
Executes a query and returns a cursor with the first result set .
&self
query
Query
&self
query
Query