Skip to content

Files

This branch is 105 commits behind ros2/rosbag2:rolling.

rosbag2_storage_sqlite3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 6, 2024
Jan 22, 2023
Feb 29, 2024
Feb 6, 2024
Jul 12, 2023
Nov 27, 2023
Dec 2, 2022
Jul 12, 2023
Oct 6, 2022
Jan 22, 2023

rosbag2_storage_sqlite3

Storage implementation plugin for rosbag2 providing SQLite3 .db3 files as the bag storage backend.

Storage Configuration File

The --storage-config-file option for this plugin takes files in the following format:

read:
  pragmas: <list of SQLite pragma settings for read-only>
write:
  pragmas: <list of SQLite pragma settings for write modes>

By default, SQLite settings are significantly optimized for performance. This might have consequences of bag data being corrupted after an application or system-level crash. This consideration only applies to current bagfile in case bag splitting is on (through --max-bag-* parameters). If increased crash-caused corruption resistance is necessary, use resilient option for --storage-preset-profile setting.

Settings are fully exposed to the user and should be applied with understanding. Please refer to documentation of pragmas.

An example configuration file could look like this:

write:
  pragmas: ["journal_mode = MEMORY", "synchronous = OFF", "schema.cache_size = 1000", "schema.page_size = 4096"]