Swift-Kuery-ORM
Swift-Kuery-ORM copied to clipboard
Varchar type ID
Context and Description
I can't create Table with String/Varchar type ID in MySQL database
Environment Details
MySQL on Ubuntu
Steps to Reproduce
Define struct with string type id extend idColumnName, idColumnType call createTableSync() method
Expected vs. Actual Behaviour
- [ ] Expected to create the table
- [ ] Actually happened: Doesn't create the table
This would be nice, having all strings define as Text makes things messy. Would be nice to have a way to define either char, varchar or text depending on requirements. I've been looking through the code but I'm still very new to swift and not sure how things are being mapped out here.