node-persist icon indicating copy to clipboard operation
node-persist copied to clipboard

Add TEXT data type?

Open tihuang1 opened this issue 12 years ago • 2 comments

Seems like it is missing, specifically for mysql?

tihuang1 avatar Mar 11 '13 20:03 tihuang1

You should be able to use the string datatype. I'm using prepared statements for all inserts and updates and just passing the string so to persist it shouldn't care.

joeferner avatar Mar 11 '13 20:03 joeferner

Thanks! I assume STRING is taken as TEXT? How do I define a VARCHAR field then? I would prefer a predefined data type.

tihuang1 avatar Mar 11 '13 21:03 tihuang1