editfmah / sharkorm

Shark ORM for iOS/macOS/tvOS/watchOS
http://sharkorm.com
Other
248 stars 39 forks source link

How to customize properties of the entity table's columns such as type, length #117

Closed cityfantom closed 5 years ago

cityfantom commented 5 years ago

How to customize properties of the entity table's columns such as type, length

editfmah commented 5 years ago

Hi, the type is determined from the property type. So a String will always be represented by TEXT column types, and Double,Float will be REAL etc....

Length, is irrelevant to SQLite as it always only stores exactly what is bound to the query. So there are no speed or space savings to be had by specifying limits.

If you wished to apply limits to get/set then you would need to use custom get/set methods.