Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/components/kvstore/src/skv/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 877 B image not shown  

Quelle  mod.rs   Sprache: unbekannt

 
/* 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
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

//! # 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)
}

[ Dauer der Verarbeitung: 0.25 Sekunden  (vorverarbeitet)  ]