Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support writing DatabaseULog to file #98

Merged
merged 5 commits into from
Jul 4, 2024
Merged

Commits on Jun 29, 2024

  1. core: support data-based direct comparison

    Previously we couldn't use == to compare ulogs, so we had to do __dict__
    comparison manually in tests. We should just add such comparison as
    default, since two ULog objects that have the same data should be
    considered equal.
    hermankolden committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    8c27980 View commit details
    Browse the repository at this point in the history
  2. ci: add test for dbulog writing to file

    Writing DatabaseULog to file doesn't work, so we add a test which finds
    errors we can fix.
    hermankolden committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    71f57a6 View commit details
    Browse the repository at this point in the history
  3. db: prevent dbulog writing to file if lazy loaded

    If DatabaseULog is lazy loaded it doesn't have data, so it will fail if
    trying to write to file.
    hermankolden committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    b2a398b View commit details
    Browse the repository at this point in the history
  4. db: store ints as ints, not floats

    DatabaseULog.write_ulog complained about wrong value types during struct
    packing.
    hermankolden committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    c6cbd33 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. db: add back indices

    There were lost in pyulog.2.sql, so the DB is very slow for large
    databases.
    
    NB: Applying this migration will take a while for large databases.
    hermankolden committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    3d506dc View commit details
    Browse the repository at this point in the history