You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command lists wal files available for that specified database:
392
+
393
+
```
394
+
replica generation index offset size created
395
+
s3 a295b16a796689f3 1 0 2036 2024-04-17T00:01:19Z
396
+
```
397
+
385
398
### Running commands from Ruby
386
399
387
400
In addition to the provided rake tasks, you can also run Litestream commands directly from Ruby. The gem provides a `Litestream::Commands` module that wraps the Litestream CLI commands. This is particularly useful for the introspection commands, as you can use the output in your Ruby code.
You can also restore a database programatically using the `Litestream::Commands.restore` method, which returns the path to the restored database:
423
+
The `Litestream::Commands.wal` method returns an array of hashes with the "replica", "generation", "index", "offset","size", and "created" keys for each wal:
raiseDatabaseRequiredException,"database argument is required for wal command, e.g. litestream:wal -- --database=path/to/database.sqlite"ifdatabase.nil?
0 commit comments