Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Actyx/ipfs-sqlite-block-store
/ functions
Functions
200 in github.com/Actyx/ipfs-sqlite-block-store
⨍
Functions
200
◇
Types & classes
33
Function
broken_db
()
src/tests.rs:538
Method
column_result
(value: ValueRef<'_>)
src/cidbytes.rs:80
Method
count
Total number of blocks in the store
src/lib.rs:234
Method
create_connection
(db_path: DbPath, config: &Config)
src/lib.rs:311
Method
default
()
src/lib.rs:177
Method
default
()
src/cidbytes.rs:32
Method
deref
(&self)
src/cache/mod.rs:69
Function
double
()
src/error.rs:135
Method
drop
(&mut self)
src/lib.rs:299
Method
drop
(&mut self)
src/transaction.rs:30
Method
extend_temp_pin
Extend temp pin with an additional cid
src/transaction.rs:101
Method
flush
(&mut self)
src/cidbytes.rs:95
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/lib.rs:155
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/cache/mod.rs:250
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/cache/async_tracker.rs:18
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/cache/sqlite_tracker.rs:22
Function
fmt_cid
(cid: Cid)
examples/stress.rs:45
Function
fmt_cids
(x: impl IntoIterator<Item = Cid>)
examples/stress.rs:49
Method
free_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
Method
from
(s: StoreStats)
src/db.rs:173
Method
from
(value: Vec<Cid>)
src/tests.rs:144
Method
from
(v: anyhow::Error)
src/error.rs:33
Function
get_block_cids
get all cids of blocks in the store
src/db.rs:742
Method
get_block_cids
Get all cids for which the store has blocks
src/transaction.rs:134
Method
get_descendants
Get descendants of a cid
src/transaction.rs:143
Function
get_id
(txn: &Transaction, cid: impl ToSql)
src/db.rs:160
Function
get_ids
get all ids corresponding to cids that we have a block for
src/db.rs:732
Function
get_known_cids
get all cids that we know about, even ones that we don't have a block for
src/db.rs:752
Method
get_known_cids
Get all cids that the store knows about
src/transaction.rs:125
Method
get_missing_blocks
Given a root of a dag, gives all cids which we do not have data for.
src/transaction.rs:153
Function
get_or_create_id
(txn: &Transaction, cid: impl ToSql)
src/db.rs:260
Method
has_block
Checks if the store has the data for a cid
src/transaction.rs:119
Method
has_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
Method
has_persistent_state
(&self)
src/cache/async_tracker.rs:63
Method
has_persistent_state
(&self)
src/cache/sqlite_tracker.rs:227
Method
id
(&self)
src/cache/mod.rs:35
Function
in_mem_cache_tracker
()
src/tests.rs:353
Function
incremental_insert
()
src/tests.rs:241
Function
insert_get
()
src/tests.rs:203
Method
integrity_check
(&mut self)
src/lib.rs:471
Function
large_dag_gc
()
src/tests.rs:575
Method
leaf
(text: &str)
src/tests.rs:123
Method
leaf
(text: &str)
tests/stress.rs:136
Method
leaf
(text: &str)
examples/cache.rs:21
Function
main
()
tests/stress.rs:20
Function
main
()
examples/import.rs:34
Function
main
()
examples/cache.rs:56
Function
main
()
examples/stress.rs:94
Function
main
()
examples/restore.rs:4
Method
max_value
Size targets that can not be reached. This can be used to disable gc.
src/lib.rs:138
Method
memory
Create an in memory block store with the given config
src/lib.rs:404
Method
memory
(config: Config)
src/tests.rs:49
Method
memory
(mk_cache_entry: F)
src/cache/sqlite_tracker.rs:134
Method
new
(count: u64, size: u64)
src/lib.rs:129
Method
new
(owner: &'a mut BlockStore<S>)
src/transaction.rs:48
Method
new
(id: i64, cid: &Cid, len: usize)
src/cache/mod.rs:32
Method
new
(spawner: S, inner: T)
src/cache/async_tracker.rs:24
Method
new
(time: Option<i64>, id: i64)
src/cache/sqlite_tracker.rs:160
Method
open
Create a persistent block store with the given config
src/lib.rs:409
Method
open
(path: impl AsRef<Path>, config: Config)
src/tests.rs:52
Method
open
(path: impl AsRef<Path>, mk_cache_entry: F)
src/cache/sqlite_tracker.rs:143
Method
open_path
(db_path: DbPath, config: Config)
src/lib.rs:328
Method
open_path
(path: DbPath, config: Config)
src/tests.rs:55
Method
open_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
Function
p
(c: &Transaction, s: &str)
src/db.rs:1064
Method
page_size
Page size used by the SQLite DB
src/lib.rs:244
Function
resolve
(txn: &Transaction, name: &[u8])
src/db.rs:694
Method
resolve
Resolves an alias to a cid.
src/transaction.rs:85
Method
retain_ids
notification that only these ids should be retained this will be called once during startup
src/cache/mod.rs:103
Method
retain_ids
(&self, ids: &[i64])
src/cache/async_tracker.rs:55
Method
retain_ids
(&self, ids: &[i64])
src/cache/sqlite_tracker.rs:199
Method
reverse_alias
Returns the aliases referencing a cid.
src/transaction.rs:77
Function
shared_file
()
src/tests.rs:558
Function
show
()
src/error.rs:86
Method
size
Total size of blocks in the store
src/lib.rs:239
Function
size_targets
()
src/tests.rs:301
Method
sort_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
Method
sort_ids
(&self, ids: &mut [i64])
src/cache/async_tracker.rs:59
Method
sort_ids
(&self, ids: &mut [i64])
src/cache/sqlite_tracker.rs:211
Function
sort_key_sort_order
()
src/cache/mod.rs:259
Function
sort_key_sort_order
()
src/cache/tests.rs:6
Function
sort_key_sort_order
()
src/cache/sqlite_tracker.rs:233
Function
sqlite_cache_tracker
()
src/tests.rs:358
Function
table_exists
(txn: &Transaction, table: &str)
src/db.rs:143
Function
temp_pin
()
src/tests.rs:515
Method
temp_pin
Get a temporary pin for safely adding blocks to the store
src/transaction.rs:96
Function
test_aliases
()
src/tests.rs:493
Function
test_migration
()
src/tests.rs:432
Function
test_resolve
()
src/tests.rs:453
Function
test_reverse_alias
()
src/tests.rs:464
Function
test_vacuum
()
src/tests.rs:486
Method
to_sql
(&self)
src/cidbytes.rs:74
Method
try_from
(value: &Cid)
src/cidbytes.rs:43
Function
unpinned
creates a block with the name "unpinned-<i>" and a size of 1000
examples/cache.rs:43
Method
used_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
Function
user_version
(txn: &Transaction)
src/db.rs:136
Method
with_pragma_cache_pages
(mut self, value: u64)
src/lib.rs:208
Method
with_pragma_synchronous
(mut self, value: Synchronous)
src/lib.rs:204
Method
with_read_only
(mut self, value: bool)
src/lib.rs:190
Method
write
(&mut self, buf: &[u8])
src/cidbytes.rs:86
← previous
101–200 of 200, ranked by callers