Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow lifetime annotations in database_storage! and query_group! #104

Closed

Commits on Jan 3, 2019

  1. impl lifetime annotations in database_storage

    Extend the `database_storage!` macro such that it allows for lifetimes
    to be added to the generated struct. This is necessary if the database
    itself has lifetime parameters that need to be threaded through to the
    queries being invoked.
    fabianschuiki committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    843688c View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2019

  1. impl lifetime annotations in query_group

    Extend the `query_group!` macro to allow for lifetimes to be annotated
    on the generated structs and traits.
    fabianschuiki committed Jan 4, 2019
    Configuration menu
    Copy the full SHA
    50b437f View commit details
    Browse the repository at this point in the history
  2. drop static bound from query

    Remove the `'static` bound from the `Query` trait. This allows databases
    with lifetime parameters to be used.
    fabianschuiki committed Jan 4, 2019
    Configuration menu
    Copy the full SHA
    4ef2bdf View commit details
    Browse the repository at this point in the history
  3. add test for databases with lifetime parameters

    Add the `tests/refs.rs` test which creates a simple database that holds
    a reference to an input string.
    fabianschuiki committed Jan 4, 2019
    Configuration menu
    Copy the full SHA
    1fa25c0 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2019

  1. remove phantom data from query debug output

    Manually implement `Debug` for query types since the addition of the
    phantom data field causes queries to be printed as
    `MyQuery(PhantomData)`. The new implementation prints them as `MyQuery`
    again.
    fabianschuiki committed Jan 8, 2019
    Configuration menu
    Copy the full SHA
    60f4071 View commit details
    Browse the repository at this point in the history