app/src/main/java/com/github/polybooks/database/Query.kt
package com.github.polybooks.database
import java.util.concurrent.CompletableFuture
/**
* Queries are Object that allow to make queries to a database.
* */
interface Query<T> {
/**
* Execute the query and return all the results in a Future.
* */
fun getAll() : CompletableFuture<List<T>>
}