/freebsd-current/contrib/kyua/utils/sqlite/ |
H A D | database_fwd.hpp | 30 /// Forward declarations for utils/sqlite/database.hpp 39 class database;
|
H A D | c_gate.hpp | 47 /// Gateway to the raw C database of SQLite 3. 49 /// This class provides a mechanism to muck with the internals of the database 58 /// The C++ database that this class wraps. 59 database& _database; 62 database_c_gate(database&); 65 static database connect(::sqlite3*);
|
H A D | database.hpp | 29 /// \file utils/sqlite/database.hpp 30 /// Wrapper classes and utilities for the SQLite database state. 33 /// representing the database, and lightweight. 57 /// Constant for the database::open flags: open in read-only mode. 59 /// Constant for the database::open flags: open in read-write mode. 61 /// Constant for the database::open flags: create on open. 65 /// A RAII model for the SQLite 3 database. 67 /// This class holds the database of the SQLite 3 interface during its existence 69 /// on such database. 72 /// implicit database hol 79 class database { class in namespace:utils::sqlite [all...] |
H A D | transaction.hpp | 55 explicit transaction(database&); 56 friend class database;
|
H A D | c_gate.cpp | 33 #include "utils/sqlite/database.hpp" 40 /// Creates a new gateway to an existing C++ SQLite database. 42 /// \param database_ The database to connect to. This object must remain alive 44 sqlite::database_c_gate::database_c_gate(database& database_) : 53 /// database. Only the corresponding database object controls when the SQLite 3 54 /// database is closed. 60 /// Creates a C++ database for a C SQLite 3 database. 62 /// \warning The created database objec [all...] |
H A D | database_test.cpp | 29 #include "utils/sqlite/database.hpp" 49 sqlite::database db = sqlite::database::in_memory(); 68 sqlite::database db = sqlite::database::open(fs::path("test.db"), 79 sqlite::database::open(fs::path("missing.db"), sqlite::open_readonly)); 88 sqlite::database db = sqlite::database::open(fs::path("test.db"), 112 sqlite::database::open(fs::path("protected/test.db"), 123 // unconditionally write the temporary database t [all...] |
H A D | database.cpp | 29 #include "utils/sqlite/database.hpp" 55 /// Internal implementation for sqlite::database. 56 struct utils::sqlite::database::impl : utils::noncopyable { 57 /// Path to the database as seen at construction time. 60 /// The SQLite 3 internal database. 63 /// Whether we own the database or not (to decide if we close it). 68 /// \param db_filename_ The path to the database as seen at construction 73 /// \param db_ The SQLite internal database. 97 /// \param file The path to the database file to be opened. 100 /// \return The opened database 149 sqlite::database::database( function in class:sqlite::database [all...] |
H A D | c_gate_test.cpp | 35 #include "utils/sqlite/database.hpp" 49 sqlite::database database = sqlite::database_c_gate::connect(raw_db); local 50 create_test_table(raw(database)); 52 // If the wrapper object has closed the SQLite 3 database, we will misbehave 62 sqlite::database db = sqlite::database::in_memory(); 76 "means to access the filename of a database connected to a raw " 85 sqlite::database database local [all...] |
H A D | transaction_test.cpp | 34 #include "utils/sqlite/database.hpp" 46 /// \param db The SQLite database. 54 check_in_table(sqlite::database& db, const char* table_name, 74 sqlite::database db = sqlite::database::in_memory(); 89 sqlite::database db = sqlite::database::in_memory(); 105 sqlite::database db = sqlite::database::in_memory(); 121 sqlite::database d [all...] |
H A D | statement_test.cpp | 40 #include "utils/sqlite/database.hpp" 49 sqlite::database db = sqlite::database::in_memory(); 61 sqlite::database db = sqlite::database::in_memory(); 74 sqlite::database db = sqlite::database::in_memory(); 85 sqlite::database db = sqlite::database::in_memory(); 97 sqlite::database d [all...] |
H A D | transaction.cpp | 35 #include "utils/sqlite/database.hpp" 44 /// The database this transaction belongs to. 45 database& db; 59 /// \param db_ The database this transaction belongs to. 61 impl(database& db_, const statuses status_) : 109 /// This is an internal function. Use database::begin_transaction() to 112 /// \param db The database this transaction belongs to. 113 sqlite::transaction::transaction(database& db) :
|
H A D | exceptions_test.cpp | 43 #include "utils/sqlite/database.hpp" 54 const sqlite::database db = sqlite::database::in_memory(); 65 const sqlite::database db = sqlite::database::open( 88 sqlite::database db = sqlite::database::open(
|
/freebsd-current/contrib/kyua/store/ |
H A D | read_backend.cpp | 38 #include "utils/sqlite/database.hpp" 45 /// Opens a database and defines session pragmas. 47 /// This auxiliary function ensures that, every time we open a SQLite database, 50 /// \param file The database file to be opened. 51 /// \param flags The flags for the open; see sqlite::database::open. 53 /// \return The opened database. 55 /// \throw store::error If there is a problem opening or creating the database. 56 sqlite::database 60 sqlite::database database local 72 sqlite::database database; member in struct:store::read_backend::impl 147 store::read_backend::database(void) function in class:store::read_backend [all...] |
H A D | read_backend.hpp | 30 /// Interface to the backend database for read-only operations. 49 utils::sqlite::database open_and_setup(const utils::fs::path&, const int); 55 /// Public interface to the database store for read-only operations. 70 utils::sqlite::database& database(void);
|
H A D | write_backend.hpp | 30 /// Interface to the backend database for write-only operations. 51 metadata initialize(utils::sqlite::database&); 57 /// Public interface to the database store for write-only operations. 74 utils::sqlite::database& database(void);
|
H A D | write_backend.cpp | 44 #include "utils/sqlite/database.hpp" 54 /// Any new database gets this schema version. Existing databases with an older 69 /// Checks if a database is empty (i.e. if it is new). 71 /// \param db The database to check. 73 /// \return True if the database is empty. 75 empty_database(sqlite::database& db) 85 /// Calculates the path to the schema file for the database. 97 /// Initializes an empty database. 99 /// \param db The database to initialize. 101 /// \return The metadata record written into the new database 136 sqlite::database database; member in struct:store::write_backend::impl 195 store::write_backend::database(void) function in class:store::write_backend [all...] |
H A D | metadata.hpp | 30 /// Representation of the database metadata. 48 /// Representation of the database metadata. 50 /// Current version of the database schema. 53 /// Timestamp of the last metadata entry in the database. 62 static metadata fetch_latest(utils::sqlite::database&);
|
H A D | read_backend_test.cpp | 39 #include "utils/sqlite/database.hpp" 51 sqlite::database db = sqlite::database::open( 58 sqlite::database db = store::detail::open_and_setup( 87 sqlite::database db = sqlite::database::open( 93 backend.database().exec("SELECT * FROM metadata"); 115 sqlite::database db = sqlite::database::open( 133 store::write_backend::open_rw(fs::path("test.db")); // Create database [all...] |
H A D | metadata_test.cpp | 37 #include "utils/sqlite/database.hpp" 46 /// Creates a test in-memory database. 51 /// The database created by this function mimics a real complete database, but 55 /// \return A SQLite database instance. 56 static sqlite::database 59 sqlite::database db = sqlite::database::in_memory(); 77 sqlite::database db = create_database(); 97 sqlite::database d [all...] |
H A D | write_backend_test.cpp | 39 #include "utils/sqlite/database.hpp" 57 sqlite::database db = sqlite::database::in_memory(); 84 sqlite::database db = sqlite::database::in_memory(); 99 sqlite::database db = sqlite::database::in_memory(); 133 sqlite::database db = sqlite::database::open( 138 backend.database() [all...] |
/freebsd-current/contrib/sendmail/libsmdb/ |
H A D | smcdb.c | 47 static int smcdb_close __P((SMDB_DATABASE *database)); 48 static int smcdb_del __P((SMDB_DATABASE *database, SMDB_DBENT *key, unsigned int flags)); 49 static int smcdb_fd __P((SMDB_DATABASE *database, int *fd)); 50 static int smcdb_lockfd __P((SMDB_DATABASE *database)); 51 static int smcdb_get __P((SMDB_DATABASE *database, SMDB_DBENT *key, SMDB_DBENT *data, unsigned int flags)); 52 static int smcdb_put __P((SMDB_DATABASE *database, SMDB_DBENT *key, SMDB_DBENT *data, unsigned int flags)); 53 static int smcdb_set_owner __P((SMDB_DATABASE *database, uid_t uid, gid_t gid)); 54 static int smcdb_sync __P((SMDB_DATABASE *database, unsigned int flags)); 59 static int smcdb_cursor __P((SMDB_DATABASE *database, SMDB_CURSOR **cursor, SMDB_FLAG flags)); 62 ** SMDB_TYPE_TO_CDB_TYPE -- Translates smdb database typ [all...] |
H A D | smdb1.c | 55 ** SMDB_TYPE_TO_DB1_TYPE -- Translates smdb database type to db1 type. 167 smdb1_close(database) 168 SMDB_DATABASE *database; 171 SMDB_DB1_DATABASE *db1 = (SMDB_DB1_DATABASE *) database->smdb_impl; 172 DB *db = ((SMDB_DB1_DATABASE *) database->smdb_impl)->smdb1_db; 179 database->smdb_impl = NULL; 185 smdb1_del(database, key, flags) 186 SMDB_DATABASE *database; 190 DB *db = ((SMDB_DB1_DATABASE *) database->smdb_impl)->smdb1_db; 200 smdb1_fd(database, f [all...] |
H A D | smndbm.c | 90 smdbm_close(database) 91 SMDB_DATABASE *database; 93 SMDB_DBM_DATABASE *db = (SMDB_DBM_DATABASE *) database->smdb_impl; 94 DBM *dbm = ((SMDB_DBM_DATABASE *) database->smdb_impl)->smndbm_dbm; 101 database->smdb_impl = NULL; 107 smdbm_del(database, key, flags) 108 SMDB_DATABASE *database; 113 DBM *dbm = ((SMDB_DBM_DATABASE *) database->smdb_impl)->smndbm_dbm; 138 smdbm_fd(database, fd) 139 SMDB_DATABASE *database; [all...] |
/freebsd-current/lib/libsecureboot/efi/ |
H A D | efi_variables.c | 87 UINT8 *database; local 94 database = NULL; 102 status = efi_getenv(&ImageSecurityDatabaseGUID, name, database, &db_size); 106 database = malloc(db_size); 107 if (database == NULL) 110 status = efi_getenv(&ImageSecurityDatabaseGUID, name, database, &db_size); 114 for (list = (EFI_SIGNATURE_LIST*) database; 153 xfree(database); 158 xfree(database); 170 UINT8 *database; local [all...] |
/freebsd-current/share/doc/psd/02.implement/ |
H A D | Makefile | 12 @(echo .R1; echo database ${.CURDIR}/ref.bib; \
|