@@ -7,6 +7,7 @@ through auto-generated REST API.
77- ✅ Rust type and macro system and db engines at the byte level
88- ✅ decentralized persistence options to maximize indexing speed and minimize data size
99- ✅ meta space : self-tested and self-documented db & http layers of code derived from annotated structs
10+ - ✅ maximizing R/W speed while minimizing data size using hierarchical data structures of smart pointers
1011
1112### Major Out-of-the-Box Features
1213
@@ -170,7 +171,7 @@ Let's say we want to persist Utxo into Redb using Redbit, declare annotated Stru
170171```
171172<!-- END_LIB -->
172173
173- And R/W entire instances efficiently using indexes and dictionaries ` examples/utxo/src/main .rs ` :
174+ And R/W entire instances efficiently using indexes and dictionaries ` examples/utxo/src/demo .rs ` :
174175
175176<!-- BEGIN_MAIN -->
176177``` rust
@@ -184,7 +185,7 @@ And R/W entire instances efficiently using indexes and dictionaries `examples/ut
184185
185186 println! (" Persisting blocks:" );
186187 for block in blocks . iter () {
187- Block :: store_unsafe_and_commit (& db , block )?
188+ Block :: store_and_commit (& db , block )?
188189 }
189190
190191 let read_tx = db . begin_read ()? ;
@@ -306,63 +307,65 @@ BlockHeader__get 280582
306307
307308### Http Endpoints generated
308309```
309- Endpoint /block/id/{value}
310- Endpoint /block?take=
311- Endpoint /block?first=
312- Endpoint /block?last=
313- Endpoint /block/id/{value}
314- Endpoint /block/id?from=&until=
315- Endpoint /block/{value}/header
316- Endpoint /block/{value}/transactions
310+ endpoint description
311+ -------------------------------------------------------------
312+ GET:/block/id/{value} block_get
313+ GET:/block?take= block_take
314+ GET:/block?first= block_first
315+ GET:/block?last= block_last
316+ HEAD:/block/id/{value} block_exists
317+ GET:/block/id?from=&until= block_range
318+ GET:/block/{value}/header block_get_header
319+ GET:/block/{value}/transactions block_get_transactions
317320
318- Endpoint /blockheader/id/{value}
319- Endpoint /blockheader?take=
320- Endpoint /blockheader?first=
321- Endpoint /blockheader?last=
322- Endpoint /blockheader/id/{value}
323- Endpoint /blockheader/id?from=&until=
324- Endpoint /blockheader/hash/{value}
325- Endpoint /blockheader/timestamp/{value}
326- Endpoint /blockheader/timestamp?from=&until=
327- Endpoint /blockheader/merkle_root/{value}
321+ GET: /blockheader/id/{value} blockheader_get
322+ GET:/blockheader?take= blockheader_take
323+ GET:/blockheader?first= blockheader_first
324+ GET:/blockheader?last= blockheader_last
325+ HEAD: /blockheader/id/{value} blockheader_exists
326+ GET: /blockheader/id?from=&until= blockheader_range
327+ GET: /blockheader/hash/{value} blockheader_get_by_hash
328+ GET: /blockheader/timestamp/{value} blockheader_get_by_timestamp
329+ GET: /blockheader/timestamp?from=&until= blockheader_range_by_timestamp
330+ GET: /blockheader/merkle_root/{value} blockheader_get_by_merkle_root
328331
329- Endpoint /transaction/id/{value}
330- Endpoint /transaction?take=
331- Endpoint /transaction?first=
332- Endpoint /transaction?last=
333- Endpoint /transaction/id/{value}
334- Endpoint /transaction/id/{value}/parent_pk
335- Endpoint /transaction/id?from=&until=
336- Endpoint /transaction/hash/{value}
337- Endpoint /transaction/{value}/utxos
338- Endpoint /transaction/{value}/inputs
332+ GET: /transaction/id/{value} transaction_get
333+ GET:/transaction?take= transaction_take
334+ GET:/transaction?first= transaction_first
335+ GET:/transaction?last= transaction_last
336+ HEAD: /transaction/id/{value} transaction_exists
337+ GET: /transaction/id/{value}/parent_pk transaction_parent_pk
338+ GET: /transaction/id?from=&until= transaction_range
339+ GET: /transaction/hash/{value} transaction_get_by_hash
340+ GET: /transaction/{value}/utxos transaction_get_utxos
341+ GET: /transaction/{value}/inputs transaction_get_inputs
339342
340- Endpoint /utxo/id/{value}
341- Endpoint /utxo?take=
342- Endpoint /utxo?first=
343- Endpoint /utxo?last=
344- Endpoint /utxo/id/{value}
345- Endpoint /utxo/id/{value}/parent_pk
346- Endpoint /utxo/id?from=&until=
347- Endpoint /utxo/datum/{value}
348- Endpoint /utxo/address/{value}
349- Endpoint /utxo/{value}/assets
343+ GET: /utxo/id/{value} utxo_get
344+ GET:/utxo?take= utxo_take
345+ GET:/utxo?first= utxo_first
346+ GET:/utxo?last= utxo_last
347+ HEAD: /utxo/id/{value} utxo_exists
348+ GET: /utxo/id/{value}/parent_pk utxo_parent_pk
349+ GET: /utxo/id?from=&until= utxo_range
350+ GET: /utxo/datum/{value} utxo_get_by_datum
351+ GET: /utxo/address/{value} utxo_get_by_address
352+ GET: /utxo/{value}/assets utxo_get_assets
350353
351- Endpoint /inputref/id/{value}
352- Endpoint /inputref?take=
353- Endpoint /inputref?first=
354- Endpoint /inputref?last=
355- Endpoint /inputref/id/{value}
356- Endpoint /inputref/id/{value}/parent_pk
357- Endpoint /inputref/id?from=&until=
354+ GET: /inputref/id/{value} inputref_get
355+ GET:/inputref?take= inputref_take
356+ GET:/inputref?first= inputref_first
357+ GET:/inputref?last= inputref_last
358+ HEAD: /inputref/id/{value} inputref_exists
359+ GET: /inputref/id/{value}/parent_pk inputref_parent_pk
360+ GET: /inputref/id?from=&until= inputref_range
358361
359- Endpoint /asset/id/{value}
360- Endpoint /asset?take=
361- Endpoint /asset?first=
362- Endpoint /asset?last=
363- Endpoint /asset/id/{value}
364- Endpoint /asset/id/{value}/parent_pk
365- Endpoint /asset/id?from=&until=
366- Endpoint /asset/name/{value}
367- Endpoint /asset/policy_id/{value}
362+ GET: /asset/id/{value} asset_get
363+ GET:/asset?take= asset_take
364+ GET:/asset?first= asset_first
365+ GET:/asset?last= asset_last
366+ HEAD: /asset/id/{value} asset_exists
367+ GET: /asset/id/{value}/parent_pk asset_parent_pk
368+ GET: /asset/id?from=&until= asset_range
369+ GET: /asset/name/{value} asset_get_by_name
370+ GET: /asset/policy_id/{value} asset_get_by_policy_id
368371```
0 commit comments