https://github.com/phimage/cd2sql
Convert CoreData model into SQL
https://github.com/phimage/cd2sql
coredata coredata-model coredata-swift coredata-tooling sql
Last synced: 29 days ago
JSON representation
Convert CoreData model into SQL
- Host: GitHub
- URL: https://github.com/phimage/cd2sql
- Owner: phimage
- Created: 2020-05-15T04:43:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-15T18:45:21.000Z (about 6 years ago)
- Last Synced: 2025-06-06T04:11:26.708Z (about 1 year ago)
- Topics: coredata, coredata-model, coredata-swift, coredata-tooling, sql
- Language: Swift
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CoreData to SQL


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
```
### example
```
cd2sql /path/to/MyModel.xcdatamodeld
```
```sql
CREATE TABLE Personne (
FirstName VARCHAR,
LastName VARCHAR,
ID INTEGER PRIMARY KEY
);
```