-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
574e5b6
commit 544f55e
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package lightdb.sqlite | ||
|
||
import cats.effect.IO | ||
import lightdb.{Document, Id} | ||
import lightdb.index.{IndexSupport, Indexer} | ||
import lightdb.query.{PagedResults, Query, SearchContext} | ||
|
||
trait SQLiteSupport[D <: Document[D]] extends IndexSupport[D] { | ||
override lazy val index: SQLiteIndexer[D] = SQLiteIndexer(this) | ||
|
||
override def doSearch(query: Query[D], | ||
context: SearchContext[D], | ||
offset: Int, | ||
after: Option[PagedResults[D]]): IO[PagedResults[D]] = ??? | ||
} | ||
|
||
case class SQLiteIndexer[D <: Document[D]](indexSupport: IndexSupport[D]) extends Indexer[D] { | ||
override def withSearchContext[Return](f: SearchContext[D] => IO[Return]): IO[Return] = ??? | ||
|
||
override def count(): IO[Int] = ??? | ||
|
||
override private[lightdb] def delete(id: Id[D]): IO[Unit] = ??? | ||
|
||
override def commit(): IO[Unit] = ??? | ||
} |