ligature_sqlite/
lib.rs

1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5//! This module is the main module for the Ligature-SQLite project.
6//! It implements the traits supplied by Ligature and persists data via SQLite3.
7
8#![deny(missing_docs)]
9
10use ligature::{Ligature, WriteFn, QueryFn, LigatureError, Dataset};
11
12/// The main struct used for working with the SQLite stored version of Ligature.
13pub struct LigatureSQLite {
14    //connection:
15}
16
17impl LigatureSQLite {
18    fn create_or_open_file(path: String) -> LigatureSQLite {
19        todo!()
20    }
21
22    fn new_memory_store() -> LigatureSQLite {
23        todo!()
24    }
25}
26
27impl Ligature for LigatureSQLite {
28    fn all_datasets(&self) -> Box<dyn Iterator<Item=Result<Dataset, LigatureError>>> {
29        todo!()
30    }
31
32    fn dataset_exists(&self, dataset: &Dataset) -> Result<bool, LigatureError> {
33        todo!()
34    }
35
36    fn match_datasets_prefix(&self, prefix: &str) -> Box<dyn Iterator<Item=Result<Dataset, LigatureError>>> {
37        todo!()
38    }
39
40    fn match_datasets_range(&self, start: &str, end: &str) -> Box<dyn Iterator<Item=Result<Dataset, LigatureError>>> {
41        todo!()
42    }
43
44    fn create_dataset(&self, dataset: &Dataset) -> Result<(), LigatureError> {
45        todo!()
46    }
47
48    fn delete_dataset(&self, dataset: &Dataset) -> Result<(), LigatureError> {
49        todo!()
50    }
51
52    fn query<T>(&self, dataset: &Dataset, f: QueryFn<T>) -> Result<T, LigatureError> {
53        todo!()
54    }
55
56    fn write<T>(&self, dataset: &Dataset, f: WriteFn<T>) -> Result<T, LigatureError> {
57        todo!()
58    }
59}