From commits-return-26275-archive-asf-public=cust-asf.ponee.io@cayenne.apache.org Sat Nov 2 09:39:33 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3289A180675 for ; Sat, 2 Nov 2019 10:39:33 +0100 (CET) Received: (qmail 82176 invoked by uid 500); 2 Nov 2019 09:39:32 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 82113 invoked by uid 99); 2 Nov 2019 09:39:32 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Nov 2019 09:39:32 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 6769180620; Sat, 2 Nov 2019 09:39:32 +0000 (UTC) Date: Sat, 02 Nov 2019 09:39:34 +0000 To: "commits@cayenne.apache.org" Subject: [cayenne] 02/02: minor edits MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: aadamchik@apache.org In-Reply-To: <157268757229.28793.16141438499600201179@gitbox.apache.org> References: <157268757229.28793.16141438499600201179@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: cayenne X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: 426cd925cb62450c2ce78f99ad4892a2ccdd926d X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20191102093932.6769180620@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. aadamchik pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cayenne.git commit 426cd925cb62450c2ce78f99ad4892a2ccdd926d Author: Andrus Adamchik AuthorDate: Sat Nov 2 12:33:02 2019 +0300 minor edits --- .../src/docs/asciidoc/_cayenne-guide/part2/queries/sqlscripting.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part2/queries/sqlscripting.adoc b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part2/queries/sqlscripting.adoc index 1d9ccf1..5d3ebe7 100644 --- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part2/queries/sqlscripting.adoc +++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part2/queries/sqlscripting.adoc @@ -14,8 +14,8 @@ [#sqlscripting] ==== Scripting SQL Queries -A powerful feature of `SQLSelect` and `SQLExec` is that a SQL string is treated by Cayenne as a dynamic template. Before -sending it to DB as a PreparedStatement, the String is evaluated, resolving the dynamic parts. The two main scripting +A powerful feature of `SQLSelect` and `SQLExec` is that SQL string is treated by Cayenne as a dynamic template. Before +creating a PreparedStatement, the String is evaluated, resolving its dynamic parts. The two main scripting elements are "variables" (that look like `$var`) and "directives" (that look like `#directive(p1 p2 p3)`). In the discussion below we'll use both selecting and updating examples, as scripting works the same way for both `SQLSelect` and `SQLExec`.