Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
//! # Skv: SQLite Key-Value Store
//!
//! This module implements a key-value storage interface that's
//! backed by SQLite.
use std::ptr;
use nserror::nsresult;
use xpcom::nsIID;
mod abort;
pub mod checker;
pub mod connection;
mod coordinator;
mod database;
mod functions;
mod importer;
mod interface;
mod key;
mod maintenance;
mod schema;
mod sql;
pub mod store;
mod value;
use interface::KeyValueService;
#[no_mangle]
pub unsafe extern "C" fn nsSQLiteKeyValueServiceConstructor(
iid: &nsIID,
result: *mut *mut libc::c_void,
) -> nsresult {
*result = ptr::null_mut();
let service = KeyValueService::new();
service.QueryInterface(iid, result)
}