Closed Feelthewind closed 4 years ago
Hi, author.
I wonder how i can make raw sql query.
Is there any example or something else to solve this?
Plus, I also wonder how i can define models when primary key is more than one.
Hi @Feelthewind
use Model.raw("SQL QUERY", arguments) or store.connection.raw("SQL QUERY") (see knex)
Model.raw("SQL QUERY", arguments)
store.connection.raw("SQL QUERY")
Hi, author.
I wonder how i can make raw sql query.
Is there any example or something else to solve this?
Plus, I also wonder how i can define models when primary key is more than one.