orientechnologies / orientechnologies/orientdb

How to run parameterized SQL from RestAPI

Open
#9,537 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Java
Stars
5k
Forks
868
Avg merge
15h 6m
Merged PRs (30d)
18

Description

OrientDB Version: How to check
Java Version: Not Sure
OS: Not sure

I need to query the OrientDB using Rest API
I can run normal SQL like this
http://ip:port/command//sql/select%20%20from%20V

But I would like to run command like this
http://ip:port/command//sql/{ "command": "select from V where name = ? and city = ?",
"parameters": [ "Luca", "Rome" ]
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at OrientDB's REST command endpoint and review how SQL commands and request parameters are currently handled. Confirm the supported request shape for parameterized queries and define completion as either documented working usage or implemented support for the requested parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
api, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.