0

I am trying to develop voltdb client in nodejs and have gone through voltdb-client-nodejs. The code very well explains how to call stored-procedures from nodejs client. However, I would like to know how can I run simple insert/read query without calling stored-procedures.

Community
  • 1
  • 1
Suresh Prajapati
  • 3,991
  • 5
  • 26
  • 38

1 Answers1

1

With the nodejs driver, you would call the built-in @AdHoc system procedure and pass in the SQL string as a parameter. This is how most of our client libraries work. The only exception I can think of is the JDBC driver, but even in that case, the CallableStatement API is just a wrapper for sending the SQL string to the @AdHoc system procedure.

Disclaimer: I work for VoltDB.

elixenide
  • 44,308
  • 16
  • 74
  • 100
BenjaminBallard
  • 1,482
  • 12
  • 11