Breathe life back into this project. #1
4 changed files with 6 additions and 6 deletions
|
@ -364,7 +364,7 @@ impl TypedIndex {
|
||||||
///
|
///
|
||||||
/// This function will return a runtime error if the type tag is unknown, or the value is
|
/// This function will return a runtime error if the type tag is unknown, or the value is
|
||||||
/// otherwise not convertible by the DB layer.
|
/// otherwise not convertible by the DB layer.
|
||||||
fn lookup<'a, 'stmt>(&self, row: &Row<'a, 'stmt>) -> Result<Binding> {
|
fn lookup<'a>(&self, row: &Row<'a>) -> Result<Binding> {
|
||||||
use TypedIndex::*;
|
use TypedIndex::*;
|
||||||
|
|
||||||
match self {
|
match self {
|
||||||
|
|
|
@ -120,7 +120,7 @@ impl TupleTwoStagePullProjector {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is exactly the same as for rel.
|
// This is exactly the same as for rel.
|
||||||
fn collect_bindings<'a, 'stmt>(&self, row: Row<'a, 'stmt>) -> Result<Vec<Binding>> {
|
fn collect_bindings<'a>(&self, row: Row<'a>) -> Result<Vec<Binding>> {
|
||||||
// There will be at least as many SQL columns as Datalog columns.
|
// There will be at least as many SQL columns as Datalog columns.
|
||||||
// gte 'cos we might be querying extra columns for ordering.
|
// gte 'cos we might be querying extra columns for ordering.
|
||||||
// The templates will take care of ignoring columns.
|
// The templates will take care of ignoring columns.
|
||||||
|
@ -204,7 +204,7 @@ impl RelTwoStagePullProjector {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn collect_bindings_into<'a, 'stmt, 'out>(&self, row: Row<'a, 'stmt>, out: &mut Vec<Binding>) -> Result<()> {
|
fn collect_bindings_into<'a>(&self, row: Row<'a>, out: &mut Vec<Binding>) -> Result<()> {
|
||||||
// There will be at least as many SQL columns as Datalog columns.
|
// There will be at least as many SQL columns as Datalog columns.
|
||||||
// gte 'cos we might be querying extra columns for ordering.
|
// gte 'cos we might be querying extra columns for ordering.
|
||||||
// The templates will take care of ignoring columns.
|
// The templates will take care of ignoring columns.
|
||||||
|
|
|
@ -93,7 +93,7 @@ impl TupleProjector {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is just like we do for `rel`, but into a vec of its own.
|
// This is just like we do for `rel`, but into a vec of its own.
|
||||||
fn collect_bindings<'a, 'stmt>(&self, row: Row<'a, 'stmt>) -> Result<Vec<Binding>> {
|
fn collect_bindings<'a>(&self, row: Row<'a>) -> Result<Vec<Binding>> {
|
||||||
// There will be at least as many SQL columns as Datalog columns.
|
// There will be at least as many SQL columns as Datalog columns.
|
||||||
// gte 'cos we might be querying extra columns for ordering.
|
// gte 'cos we might be querying extra columns for ordering.
|
||||||
// The templates will take care of ignoring columns.
|
// The templates will take care of ignoring columns.
|
||||||
|
@ -151,7 +151,7 @@ impl RelProjector {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn collect_bindings_into<'a, 'stmt, 'out>(&self, row: Row<'a, 'stmt>, out: &mut Vec<Binding>) -> Result<()> {
|
fn collect_bindings_into<'a>(&self, row: Row<'a>, out: &mut Vec<Binding>) -> Result<()> {
|
||||||
// There will be at least as many SQL columns as Datalog columns.
|
// There will be at least as many SQL columns as Datalog columns.
|
||||||
// gte 'cos we might be querying extra columns for ordering.
|
// gte 'cos we might be querying extra columns for ordering.
|
||||||
// The templates will take care of ignoring columns.
|
// The templates will take care of ignoring columns.
|
||||||
|
|
|
@ -93,7 +93,7 @@ impl<'schema> PullConsumer<'schema> {
|
||||||
Ok(PullConsumer::for_puller(puller, schema, PullIndices::zero()))
|
Ok(PullConsumer::for_puller(puller, schema, PullIndices::zero()))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn collect_entity<'a, 'stmt>(&mut self, row: &rusqlite::Row<'a, 'stmt>) -> Entid {
|
pub(crate) fn collect_entity<'a>(&mut self, row: &rusqlite::Row<'a>) -> Entid {
|
||||||
let entity = row.get(self.indices.sql_index);
|
let entity = row.get(self.indices.sql_index);
|
||||||
self.entities.insert(entity);
|
self.entities.insert(entity);
|
||||||
entity
|
entity
|
||||||
|
|
Loading…
Reference in a new issue