balderdashy / balderdashy/sails

There is no option to use raw SQL query condition.

Open
#5,451 5 comments 1 reaction 0 assignees View on GitHub
orm proposal what do you think?
Dominant language
JavaScript
Stars
22.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Like `Model.find({ where: 'raw sql' })`.
For example, it is possible in Sequelize:
`Model.findAll({ where: Sequelize.literal('raw sql') })`
or in ActiveRecord (Ruby on Rails):
`Model.where('raw sql')`
It will be very flexibly and useful!

Contributor guide

Open the contributing guide

Research direction

The issue provides no file, test, or entry point. Begin by locating the Model.find/where query interface and comparing its supported conditions with the requested raw-SQL form; done means the intended behavior is defined and covered by tests for the Sequelize and ActiveRecord-style examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, sql
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.