MCPcopy Create free account

hub / github.com/Actyx/ipfs-sqlite-block-store / functions

Functions200 in github.com/Actyx/ipfs-sqlite-block-store

Functionbroken_db
()
src/tests.rs:538
Methodcolumn_result
(value: ValueRef<'_>)
src/cidbytes.rs:80
Methodcount
Total number of blocks in the store
src/lib.rs:234
Methodcreate_connection
(db_path: DbPath, config: &Config)
src/lib.rs:311
Methoddefault
()
src/lib.rs:177
Methoddefault
()
src/cidbytes.rs:32
Methodderef
(&self)
src/cache/mod.rs:69
Functiondouble
()
src/error.rs:135
Methoddrop
(&mut self)
src/lib.rs:299
Methoddrop
(&mut self)
src/transaction.rs:30
Methodextend_temp_pin
Extend temp pin with an additional cid
src/transaction.rs:101
Methodflush
(&mut self)
src/cidbytes.rs:95
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/lib.rs:155
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/cache/mod.rs:250
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/cache/async_tracker.rs:18
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/cache/sqlite_tracker.rs:22
Functionfmt_cid
(cid: Cid)
examples/stress.rs:45
Functionfmt_cids
(x: impl IntoIterator<Item = Cid>)
examples/stress.rs:49
Methodfree_pages
Number of unused pages in the SQLite DB The DB file can be shrunk by at least this page count by calling `vacuum`, which often is a long-running proc
src/lib.rs:262
Methodfrom
(s: StoreStats)
src/db.rs:173
Methodfrom
(value: Vec<Cid>)
src/tests.rs:144
Methodfrom
(v: anyhow::Error)
src/error.rs:33
Functionget_block_cids
get all cids of blocks in the store
src/db.rs:742
Methodget_block_cids
Get all cids for which the store has blocks
src/transaction.rs:134
Methodget_descendants
Get descendants of a cid
src/transaction.rs:143
Functionget_id
(txn: &Transaction, cid: impl ToSql)
src/db.rs:160
Functionget_ids
get all ids corresponding to cids that we have a block for
src/db.rs:732
Functionget_known_cids
get all cids that we know about, even ones that we don't have a block for
src/db.rs:752
Methodget_known_cids
Get all cids that the store knows about
src/transaction.rs:125
Methodget_missing_blocks
Given a root of a dag, gives all cids which we do not have data for.
src/transaction.rs:153
Functionget_or_create_id
(txn: &Transaction, cid: impl ToSql)
src/db.rs:260
Methodhas_block
Checks if the store has the data for a cid
src/transaction.rs:119
Methodhas_cid
Checks if the store knows about the cid. Note that this does not necessarily mean that the store has the data for the cid.
src/transaction.rs:113
Methodhas_persistent_state
(&self)
src/cache/async_tracker.rs:63
Methodhas_persistent_state
(&self)
src/cache/sqlite_tracker.rs:227
Methodid
(&self)
src/cache/mod.rs:35
Functionin_mem_cache_tracker
()
src/tests.rs:353
Functionincremental_insert
()
src/tests.rs:241
Functioninsert_get
()
src/tests.rs:203
Methodintegrity_check
(&mut self)
src/lib.rs:471
Functionlarge_dag_gc
()
src/tests.rs:575
Methodleaf
(text: &str)
src/tests.rs:123
Methodleaf
(text: &str)
tests/stress.rs:136
Methodleaf
(text: &str)
examples/cache.rs:21
Functionmain
()
tests/stress.rs:20
Functionmain
()
examples/import.rs:34
Functionmain
()
examples/cache.rs:56
Functionmain
()
examples/stress.rs:94
Functionmain
()
examples/restore.rs:4
Methodmax_value
Size targets that can not be reached. This can be used to disable gc.
src/lib.rs:138
Methodmemory
Create an in memory block store with the given config
src/lib.rs:404
Methodmemory
(config: Config)
src/tests.rs:49
Methodmemory
(mk_cache_entry: F)
src/cache/sqlite_tracker.rs:134
Methodnew
(count: u64, size: u64)
src/lib.rs:129
Methodnew
(owner: &'a mut BlockStore<S>)
src/transaction.rs:48
Methodnew
(id: i64, cid: &Cid, len: usize)
src/cache/mod.rs:32
Methodnew
(spawner: S, inner: T)
src/cache/async_tracker.rs:24
Methodnew
(time: Option<i64>, id: i64)
src/cache/sqlite_tracker.rs:160
Methodopen
Create a persistent block store with the given config
src/lib.rs:409
Methodopen
(path: impl AsRef<Path>, config: Config)
src/tests.rs:52
Methodopen
(path: impl AsRef<Path>, mk_cache_entry: F)
src/cache/sqlite_tracker.rs:143
Methodopen_path
(db_path: DbPath, config: Config)
src/lib.rs:328
Methodopen_path
(path: DbPath, config: Config)
src/tests.rs:55
Methodopen_test
Open the file at the given path for testing. This will create a writeable in-memory database that is initialized with the content of the file at the
src/lib.rs:419
Functionp
(c: &Transaction, s: &str)
src/db.rs:1064
Methodpage_size
Page size used by the SQLite DB
src/lib.rs:244
Functionresolve
(txn: &Transaction, name: &[u8])
src/db.rs:694
Methodresolve
Resolves an alias to a cid.
src/transaction.rs:85
Methodretain_ids
notification that only these ids should be retained this will be called once during startup
src/cache/mod.rs:103
Methodretain_ids
(&self, ids: &[i64])
src/cache/async_tracker.rs:55
Methodretain_ids
(&self, ids: &[i64])
src/cache/sqlite_tracker.rs:199
Methodreverse_alias
Returns the aliases referencing a cid.
src/transaction.rs:77
Functionshared_file
()
src/tests.rs:558
Functionshow
()
src/error.rs:86
Methodsize
Total size of blocks in the store
src/lib.rs:239
Functionsize_targets
()
src/tests.rs:301
Methodsort_ids
sort ids by importance. More important ids should go to the end. this will be called from inside gc
src/cache/mod.rs:95
Methodsort_ids
(&self, ids: &mut [i64])
src/cache/async_tracker.rs:59
Methodsort_ids
(&self, ids: &mut [i64])
src/cache/sqlite_tracker.rs:211
Functionsort_key_sort_order
()
src/cache/mod.rs:259
Functionsort_key_sort_order
()
src/cache/tests.rs:6
Functionsort_key_sort_order
()
src/cache/sqlite_tracker.rs:233
Functionsqlite_cache_tracker
()
src/tests.rs:358
Functiontable_exists
(txn: &Transaction, table: &str)
src/db.rs:143
Functiontemp_pin
()
src/tests.rs:515
Methodtemp_pin
Get a temporary pin for safely adding blocks to the store
src/transaction.rs:96
Functiontest_aliases
()
src/tests.rs:493
Functiontest_migration
()
src/tests.rs:432
Functiontest_resolve
()
src/tests.rs:453
Functiontest_reverse_alias
()
src/tests.rs:464
Functiontest_vacuum
()
src/tests.rs:486
Methodto_sql
(&self)
src/cidbytes.rs:74
Methodtry_from
(value: &Cid)
src/cidbytes.rs:43
Functionunpinned
creates a block with the name "unpinned-<i>" and a size of 1000
examples/cache.rs:43
Methodused_pages
Number of used pages in the SQLite DB Multiply this with [`page_size`](#method.page_size) to obtain an upper bound on how much space is actually used
src/lib.rs:254
Functionuser_version
(txn: &Transaction)
src/db.rs:136
Methodwith_pragma_cache_pages
(mut self, value: u64)
src/lib.rs:208
Methodwith_pragma_synchronous
(mut self, value: Synchronous)
src/lib.rs:204
Methodwith_read_only
(mut self, value: bool)
src/lib.rs:190
Methodwrite
(&mut self, buf: &[u8])
src/cidbytes.rs:86
← previous101–200 of 200, ranked by callers