Coder Social home page Coder Social logo

healthkit-to-sqlite's People

Contributors

jshrake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aortbals

healthkit-to-sqlite's Issues

table Workout has no column named workoutStatistics

Describe the bug

After several minutes of running this:

healthkit-to-sqlite export.zip sqlite://healthkit.db

I get the reported error.

To Reproduce
If possible, please share a minimal export.zip or XML snippet that can reproduce the issue.

Debug Output
Please share the relevant log output after running with RUST_LOG=debug. This will provide insight into any SQL failures:

RUST_LOG=debug healthkit-to-sqlite export.zip sqlite://healthkit.db
[2023-08-12T04:25:38Z INFO  sqlx::query] INSERT INTO Workout (`workoutActivityType`, …; rows affected: 0, rows returned: 0, elapsed: 29.500µs

    INSERT INTO
      Workout (
        `workoutActivityType`,
        `duration`,
        `durationUnit`,
        `totalDistance`,
        `totalDistanceUnit`,
        `totalEnergyBurned`,
        `totalEnergyBurnedUnit`,
        `sourceName`,
        `sourceVersion`,
        `device`,
        `creationDate`,
        `startDate`,
        `endDate`,
        `metadata_HKIndoorWorkout`,
        `metadata_HKTimeZone`,
        `metadata_HKWeatherTemperature`,
        `metadata_HKWeatherHumidity`,
        `workoutEvents`,
        `workoutStatistics`,
        `geometry`
      )
    VALUES
      (
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?,
        ?
      )

Error: error returned from database: (code: 1) table Workout has no column named workoutStatistics

Caused by:
    (code: 1) table Workout has no column named workoutStatistics

Desktop (please complete the following information):

  • OS: macos 12.2.1
  • Rust: 1.71.1 (eb26296b5 2023-08-03)

Additional context

$ sqlite3 healthkit.db
SQLite version 3.36.0 2021-06-18 18:58:49
Enter ".help" for usage hints.
sqlite> .schema Workout
CREATE TABLE `workout`
  (
     `creationdate`                         DATE,
     `device`                               TEXT,
     `duration`                             REAL,
     `durationunit`                         TEXT,
     `enddate`                              DATE,
     `geometry`                             JSON,
     `metadata_hkaveragemets`               TEXT,
     `metadata_hkelevationascended`         TEXT,
     `metadata_hkindoorworkout`             INTEGER,
     `metadata_hkmetadatakeysyncidentifier` TEXT,
     `metadata_hkmetadatakeysyncversion`    INTEGER,
     `metadata_hktimezone`                  TEXT,
     `metadata_hkweatherhumidity`           TEXT,
     `metadata_hkweathertemperature`        TEXT,
     `sourcename`                           TEXT,
     `sourceversion`                        TEXT,
     `startdate`                            DATE,
     `totaldistance`                        REAL,
     `totaldistanceunit`                    TEXT,
     `totalenergyburned`                    REAL,
     `totalenergyburnedunit`                TEXT,
     `workoutactivitytype`                  TEXT,
     `workoutevents`                        JSON
  ); 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.