fluree / db

Fluree database library
https://fluree.github.io/db/
Other
337 stars 21 forks source link

ledger query-string-t-val #761

Closed bplatz closed 5 months ago

bplatz commented 5 months ago

This allows a ledger alias to contain http query strings to specify the moment in time a db should be loaded.

This is used in fluree/query-connection whose primary consumer is fluree/server - allowing more granular time travel capabilities in federated (multi-db) queries.

This expanded syntax is supported for both from and from-named keys in the query syntax, and can now specify a t value like:

global-t is still supported as an opt in query-connection and will be used if a more specific t value is not supplied for a db as per above.

API test for this syntax in fluree/server