there is a way to configure waterline in sails to make query case sensitive ? In this moment i can do onlycase-insensitive search and these are too slow because index is not used
[updated ] i try to use the following solution
mysqlAdapter: {
adapter: 'sails-mysql',
host: 'localhost',
user: 'root',
password: 'tecreply',
database: 'sailsApi',
wlNext: {
caseSensitive: true
}
}
but if i try to use the metod Find on my model i see that is still not case sensitive... someone can help me ?
Please take a look at : https://github.com/balderdashy/waterline/issues/239#issuecomment-216342636
Guys found solution for that. You have to configure it in your connection settings, eg:
postgresql: {
url: 'postgres://username:password@hostname:port/database',
wlNext: {
caseSensitive: true
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.