You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by de...@apache.org on 2023/11/21 00:07:15 UTC
(age-website) branch master updated: Add support for inline symbols in prepared statements (#235)
This is an automated email from the ASF dual-hosted git repository.
dehowef pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age-website.git
The following commit(s) were added to refs/heads/master by this push:
new 424268cd Add support for inline symbols in prepared statements (#235)
424268cd is described below
commit 424268cd26a2977cf0ec9665a6368744214b1634
Author: ksheroz <87...@users.noreply.github.com>
AuthorDate: Tue Nov 21 05:07:10 2023 +0500
Add support for inline symbols in prepared statements (#235)
* Add inline support
* Use upper-case for SQL
---
docs/advanced/prepared_statements.md | 4 ++--
docs/advanced/sql_in_cypher.md | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/advanced/prepared_statements.md b/docs/advanced/prepared_statements.md
index fdb130c2..bfc39c46 100644
--- a/docs/advanced/prepared_statements.md
+++ b/docs/advanced/prepared_statements.md
@@ -4,7 +4,7 @@ Cypher can run a read query within a Prepared Statement. When using parameters w
## Cypher Parameter Format
-A cypher parameter is in the format of a '$' followed by an identifier. Unlike Postgres parameters, Cypher parameters start with a letter, followed by an alphanumeric string of arbitrary length.
+A cypher parameter is in the format of a `'$'` followed by an identifier. Unlike Postgres parameters, Cypher parameters start with a letter, followed by an alphanumeric string of arbitrary length.
Example: `$parameter_name`
@@ -27,7 +27,7 @@ AS (v agtype);
## Prepared Statements Execution
-When executing the prepared statement, place an agtype map with the parameter values where the Postgres Parameter in the Cypher function call is. The value must be an agtype map or an error will be thrown. Exclude the '$' for parameter names.
+When executing the prepared statement, place an agtype map with the parameter values where the Postgres Parameter in the Cypher function call is. The value must be an agtype map or an error will be thrown. Exclude the `'$'` for parameter names.
```postgresql
diff --git a/docs/advanced/sql_in_cypher.md b/docs/advanced/sql_in_cypher.md
index 624d288d..fbf2b148 100644
--- a/docs/advanced/sql_in_cypher.md
+++ b/docs/advanced/sql_in_cypher.md
@@ -1,6 +1,6 @@
# SQL In Cypher
-AGE does not support SQL being directly written in Cypher. However with [user defined functions](../functions/user_functions.md) you can write sql queries and call them in a cypher command.
+AGE does not support SQL being directly written in Cypher. However with [user defined functions](../functions/user_functions.md) you can write SQL queries and call them in a cypher command.
```