Swift-Kuery-ORM icon indicating copy to clipboard operation
Swift-Kuery-ORM copied to clipboard

Varchar type ID

Open mbmshafraz opened this issue 6 years ago • 1 comments

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

mbmshafraz avatar Jan 31 '19 10:01 mbmshafraz

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.

AdmiralTriggerHappy avatar Apr 14 '20 12:04 AdmiralTriggerHappy