Home
last modified time | relevance | path

Searched full:database (Results 1 – 25 of 1163) sorted by relevance

12345678910>>...47

/freebsd-src/contrib/kyua/utils/sqlite/
H A Ddatabase.cpp29 #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.
[all …]
H A Dstatement_test.cpp40 #include "utils/sqlite/database.hpp"
49 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
61 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
74 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
85 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
97 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
109 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
122 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
136 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
150 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
[all …]
H A Ddatabase_test.cpp29 #include "utils/sqlite/database.hpp"
49 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
68 sqlite::database db = sqlite::database::open(fs::path("test.db"), in ATF_TEST_CASE_BODY()
79 sqlite::database::open(fs::path("missing.db"), sqlite::open_readonly)); in ATF_TEST_CASE_BODY()
88 sqlite::database db = sqlite::database::open(fs::path("test.db"), in ATF_TEST_CASE_BODY()
112 sqlite::database::open(fs::path("protected/test.db"), in ATF_TEST_CASE_BODY()
123 // unconditionally write the temporary database to disk (even with in ATF_TEST_CASE_BODY()
125 sqlite::database db = sqlite::database::temporary(); in ATF_TEST_CASE_BODY()
134 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
136 // The destructor for the database will run now. If it does a second close, in ATF_TEST_CASE_BODY()
[all …]
H A Dc_gate.cpp33 #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_) : in database_c_gate()
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 object does NOT own the C database. You must
66 /// \param raw_database The raw database to wrap temporarily.
68 /// \return The wrapped database without strong ownership on the input database.
[all …]
H A Ddatabase.hpp29 /// \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 hold by the class, they use C++ types where appropriate
[all …]
/freebsd-src/contrib/kyua/store/
H A Dread_backend.cpp38 #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 = sqlite::database::open(file, flags); in open_and_setup() local
61 database.exec("PRAGMA foreign_keys = ON"); in open_and_setup()
[all …]
H A Dwrite_backend.cpp44 #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) in empty_database()
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.
[all …]
H A Dmigrate.cpp49 #include "utils/sqlite/database.hpp"
70 /// Queries the schema version of the given database.
72 /// \param file The database from which to query the schema version.
78 sqlite::database db = store::detail::open_and_setup( in get_schema_version()
87 /// from the historical database to chunked files. We'd use a more generic
90 /// \param file Database on which to apply the migration step.
91 /// \param version_from Current schema version in the database.
111 sqlite::database db = store::detail::open_and_setup( in migrate_schema_step()
139 /// Given a historical database, chunks it up into results files.
141 /// The given database is DELETED on success given that it will have been
[all …]
H A Dwrite_transaction.cpp55 #include "utils/sqlite/database.hpp"
73 /// \param db The SQLite database.
78 put_env_vars(sqlite::database& db, in put_env_vars()
96 /// \param db The SQLite database.
101 last_rowid(sqlite::database& db, const std::string& table) in last_rowid()
117 /// \param db The database into which to store the information.
122 put_metadata(sqlite::database& db, const model::metadata& md) in put_metadata()
145 /// Stores an arbitrary file into the database as a BLOB.
147 /// \param db The database into which to store the file.
152 /// \throw sqlite::error If there are problems writing to the database.
[all …]
H A Dmetadata_test.cpp37 #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(); in create_database()
77 sqlite::database db = create_database(); in ATF_TEST_CASE_BODY()
97 sqlite::database db = create_database(); in ATF_TEST_CASE_BODY()
106 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
119 sqlite::database db = sqlite::database::in_memory(); in ATF_TEST_CASE_BODY()
[all …]
/freebsd-src/contrib/ofed/opensm/include/opensm/
H A Dosm_db.h58 /****h* OpenSM/Database
60 * Database
63 * The OpenSM database interface provide the means to restore persistent
80 /****s* OpenSM: Database/osm_db_domain_t
85 * A domain of the database. Can be viewed as a database table.
99 * Pointer to the parent database object.
108 /****s* OpenSM: Database/osm_db_t
113 * The main database object.
128 * Pointer to the database implementation object
139 /****f* OpenSM: Database/osm_db_construct
[all …]
/freebsd-src/usr.bin/locate/locate/
H A Dlocate.139 .Op Fl d Ar database
44 program searches a database for all pathnames which match the specified
46 The database is recomputed periodically (usually weekly or daily),
93 Print some statistics about the database and exit.
96 .It Fl d Ar database
98 .Ar database
99 instead of the default file name database.
105 option adds the specified database to the list
109 .Ar database
112 to the default database.
[all …]
/freebsd-src/contrib/sendmail/libsmdb/
H A Dsmcdb.c47 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 …
52 static int smcdb_put __P((SMDB_DATABASE *database, SMDB_DBENT *key, SMDB_DBENT *data, unsigned int …
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 type to cdb type.
[all …]
H A Dsmdb1.c55 ** SMDB_TYPE_TO_DB1_TYPE -- Translates smdb database type to db1 type.
167 smdb1_close(database) in smdb1_close() argument
168 SMDB_DATABASE *database; in smdb1_close()
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) in smdb1_del() argument
186 SMDB_DATABASE *database; in smdb1_del()
190 DB *db = ((SMDB_DB1_DATABASE *) database->smdb_impl)->smdb1_db;
200 smdb1_fd(database, fd) in smdb1_fd() argument
[all …]
H A Dsmdb.c24 ** SMDB_MALLOC_DATABASE -- Allocates a database structure.
48 ** SMDB_FREE_DATABASE -- Unallocates a database structure.
51 ** database -- a SMDB_DATABASE pointer to deallocate.
58 smdb_free_database(database) in smdb_free_database() argument
59 SMDB_DATABASE *database; in smdb_free_database()
61 if (database != NULL)
62 free(database);
160 ** SMDB_OPEN_DATABASE -- Opens a database.
162 ** This opens a database. If type is SMDB_DEFAULT it tries to
164 ** try to open a database of that type.
[all …]
H A Dsmndbm.c90 smdbm_close(database) in smdbm_close() argument
91 SMDB_DATABASE *database; in smdbm_close()
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) in smdbm_del() argument
108 SMDB_DATABASE *database; in smdbm_del()
113 DBM *dbm = ((SMDB_DBM_DATABASE *) database->smdb_impl)->smndbm_dbm;
138 smdbm_fd(database, fd) in smdbm_fd() argument
139 SMDB_DATABASE *database; in smdbm_fd()
[all …]
H A Dsmdb2.c31 ** SMDB_TYPE_TO_DB2_TYPE -- Translates smdb database type to db2 type.
223 smdb2_close(database) in smdb2_close() argument
224 SMDB_DATABASE *database; in smdb2_close()
227 SMDB_DB2_DATABASE *db2 = (SMDB_DB2_DATABASE *) database->smdb_impl;
228 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db;
235 database->smdb_impl = NULL;
241 smdb2_del(database, key, flags) in smdb2_del() argument
242 SMDB_DATABASE *database; in smdb2_del()
246 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db;
256 smdb2_fd(database, fd) in smdb2_fd() argument
[all …]
/freebsd-src/crypto/heimdal/lib/hdb/
H A Dhdb_err.et13 #error_code INUSE, "Entry already exists in database"
14 error_code UK_SERROR, "Database store error"
15 error_code UK_RERROR, "Database read error"
16 error_code NOENTRY, "No such entry in the database"
17 error_code DB_INUSE, "Database is locked or in use--try again later"
18 error_code DB_CHANGED, "Database was modified during read"
19 error_code RECURSIVELOCK, "Attempt to lock database twice"
20 error_code NOTLOCKED, "Attempt to unlock database when not locked"
22 error_code CANT_LOCK_DB, "Insufficient access to lock database"
23 error_code EXISTS, "Entry already exists in database"
[all …]
/freebsd-src/usr.bin/getent/
H A Dgetent.135 .Nd get entries from administrative database
38 .Ar database
44 database specified by
45 .Ar database ,
49 .Ar database
52 file format for that database.
55 .Ar database
59 .Sy Database Ta Sy Display format
76 .Ar database
91 .Ar database
[all …]
/freebsd-src/crypto/heimdal/doc/doxyout/hdb/man/man3/
H A DHDB.385 The \fBHDB\fP structure is what the KDC and kadmind framework uses to query the backend database wh…
93 Open (or create) the a Kerberos database.
95 Open (or create) the a Kerberos database that was resolved with hdb_create(). The third and fourth …
100 Close the database for transaction
102 Closes the database for further transactions, wont release any permanant resources. the database ca…
113 Store an entry to database
116 Remove an entry from the database.
125 Lock database
127 …ppen on the database while the lock is held, so the entry is only useful for syncroning creation o…
130 Unlock database
[all …]
/freebsd-src/crypto/heimdal/kdc/
H A Dhprop.839 .Nd propagate the KDC database
48 .Fl Fl database= Ns Pa file
79 takes a principal database in a specified format and converts it into
80 a stream of Heimdal database records. This stream can either be
88 (service hprop) and sends the database in encrypted form.
94 .It Fl d Ar file , Fl Fl database= Ns Pa file
95 The database to be propagated.
97 Specifies the type of the source database. Alternatives include:
101 a Heimdal database
110 KDC database.
[all …]
/freebsd-src/lib/libc/db/man/
H A Ddbm.330 .Nd database access functions
55 Database access functions.
60 database.
75 opens or creates a database.
80 the database; the actual database has a
87 then the actual database is in the file
107 identifies the database and is the
122 closes the database.
127 inserts or replaces an entry in the database.
139 and the database already contains an entry for
[all …]
/freebsd-src/contrib/file/doc/
H A Dlibmagic.man91 operate on the magic database file
126 Check the magic database for consistency and print warnings to stderr.
178 database and deallocates any resources used.
238 separated database files passed in as
242 for the default database.
248 separated list of database files passed in as
252 for the default database.
267 argument which is a colon separated list of database files, or
269 for the default database.
274 separated list of database file
[all...]
/freebsd-src/usr.bin/cap_mkdb/
H A Dcap_mkdb.133 .Nd create capability database
43 utility builds a hashed database out of the
45 logical database constructed by the concatenation of the specified
48 The database is named by the basename of the first file argument and
53 routines can access the database in this form much more quickly
57 record is stored into the database.
62 Use big-endian byte order for database metadata.
64 Specify a different database basename.
66 Use little-endian byte order for database metadata.
68 Print out the number of capability records in the database.
[all …]
/freebsd-src/lib/libc/gen/
H A Dgetutxent.337 .Nd user accounting database functions
59 These functions operate on the user accounting database which stores
144 writing a new entry to the database containing the same value for
200 database.
204 function searches for the next entry in the database of which the
236 function searches for the next entry in the database whose
249 function searches for the next entry in the database whose
259 user accounting database if not already done so.
264 functions allow the database to be opened manually, causing the offset
265 within the user accounting database to be rewound.
[all …]

12345678910>>...47