Is a Data API coming? #101009
Unanswered
tlaverdure
asked this question in
Q&A
Is a Data API coming?
#101009
Replies: 1 comment
-
|
CockroachDB doesn't have a built-in HTTP data API currently, but you have options: What exists:
Workarounds:
docker run postgrest/postgrest
# Point at CockroachDB as Postgres
http.HandleFunc("/query", func(w http.ResponseWriter, r *http.Request) {
db.Query(r.FormValue("sql"))
})Why no native HTTP API?
Feature request: If you want native support, open an issue - the team tracks demand for features like this. For serverless-style HTTP SQL access, consider CockroachDB Serverless which has better connection pooling for HTTP-like workloads. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does Cockroach plan to add a data api that allows SQL queries over HTTP?
Beta Was this translation helpful? Give feedback.
All reactions