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

Document CREATE statement for history table #19

Open
quintstoffers opened this issue Feb 3, 2014 · 2 comments
Open

Document CREATE statement for history table #19

quintstoffers opened this issue Feb 3, 2014 · 2 comments

Comments

@quintstoffers
Copy link
Contributor

No description provided.

@ghost ghost assigned zhuwenying Feb 3, 2014
@zhuwenying
Copy link
Contributor

Title : History table structure, create&insert statement

  1. History database file path, name

    path : /data/data/com.quantimodo.sync/cache/
    name : syncs.sqlite

  2. History table name

    history

  3. field type and variable

    package VARCHAR //synced app label
    synccount INT // synced measurement count
    syncstate INT(1) //sync result ( 1 : success, -1 : failed)

  4. create statement for history table

    CREATE TABLE IF NOT EXISTS history (
    package VARCHAR,
    synccount INT,
    syncstate INT(1)
    );

    1. insert value statement for history table (example)

      INSERT INTO history
      Values ( "Accupedo", 42, -1);

@mikepsinn
Copy link
Member

@zhuwenying i think whenever you're documenting something, you want to put it in the wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants