Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 686 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 686 Bytes

CoreData to SQL

Swift release

Convert CoreData model to SQL

Install

Using release

Go to https://github.com/phimage/cd2sql/releases and take the last binary for macOS cd2sql.zip

Using sources

git clone https://github.com/phimage/cd2sql.git
cd cd2sql
swift build -c release

Binary result in .build/release/cd2sql

Usage

cd2sql <core data model>

example

cd2sql /path/to/MyModel.xcdatamodeld
CREATE TABLE Personne (
    FirstName VARCHAR,
    LastName VARCHAR,
    ID INTEGER PRIMARY KEY
);