Skip to content

Some Helpful Information for the README.md #7

@jamesnyika

Description

@jamesnyika

Had a lot of challenges running this against a generic sqlite database I had but here are some things I found out that you may want to put on the readme... at least for me they were needed

  1. You MUST have xcode installed and command line tools as well.
  2. Name tables with schema name and no use of spaces or underscores. eg. main.CustomerRefunds
  3. Ensure no field on any table has a hyphen in the name. Underscores are ok. eg. first-name is NOT ok. first_name is ok.
  4. Ensure that lookup tables are broken up. You cannot have a relationship (FK) from one table to another MORE THAN ONCE. You must break that up into two separate table relationships. So for example, I tried to use a single table to hold all my lookup values and so what would happen is that one table might point to the lookup table using a currency foreign key, and a language fk as well. This will cause an error on this script. Break out language lists and currency lists to two tables then build the fk.
  5. When running sqlite2coredata you must supply the fully qualified path to the output directory right after you supply the database path.
  6. if you mark your id columns as AUTOINCREMENT, then SQLITE will generate a sequence table. Unfortunately, the table name is will not play well with the naming scheme this script expects. This will result in errors. So I just did not mark them as autoincrement.

I hope this helps someone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions