Skip to content

Commit 8abc02a

Browse files
N1QL -> SQL++ Rebrand (#291)
* N1QL -> SQL++ * N1QL -> SQL++ * So alike it's indistinguishable ;) * Missing N1QLs and Daims --------- Co-authored-by: Richard Smedley <[email protected]>
1 parent d2ba5a3 commit 8abc02a

14 files changed

+42
-42
lines changed

modules/concept-docs/pages/analytics-for-sdk-users.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Analytics
2-
:description: Parallel data management for complex queries over many records, using a familiar N1QL-like syntax.
2+
:description: Parallel data management for complex queries over many records, using a familiar {sqlpp} syntax.
33
:page-topic-type: concept
44
:page-aliases: analytics,
55

modules/concept-docs/pages/n1ql-query.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= Query
1+
= Querying with {sqlpp}
22
:description: Parallel data management for complex queries over many records, using a familiar SQL-like syntax.
33
:page-topic-type: concept
44
:page-aliases: ROOT:n1ql-query,ROOT:prepared-statements,ROOT:querying
@@ -139,7 +139,7 @@ If index-maintenance is running behind, the query waits for it to catch up.
139139
* `request_plus`: Executes the query, requiring the indexes first to be updated to the timestamp of the current query-request.
140140
If index-maintenance is running behind, the query waits for it to catch up.
141141
142-
For N1QL, the default consistency is `not_bounded`.
142+
For {sqlpp}, the default consistency is `not_bounded`.
143143
////
144144
Consider the following snippet:
145145

@@ -191,10 +191,10 @@ LINQ is a community project.
191191
Although it works well with Couchbase, it is not part of the officially-supported product.
192192
193193
LINQ (Language Integrated Query), is a powerful way to guide you in building your statements:
194-
you obtain Type safety and auto completion of relevant methods and N1QL clauses.
194+
you obtain Type safety and auto completion of relevant methods and {sqlpp} clauses.
195195
It implements https://msdn.microsoft.com/en-us/library/mt693024.aspx[Microsoft’s language integrated query extensions to the C# language],
196196
and is similar to other LINQ providers like Linq2SQL, Entity Framework and NHibernate.
197-
The difference is that it emits N1QL in place of SQL.
197+
The difference is that it emits {sqlpp} in place of SQL.
198198
If you have used any other LINQ provider, you will find its familiarity and consistency make it an easy transition.
199199
200200
_Linq2Couchbase_, the LINQ provider for the Couchbase .NET SDK, is a stand-alone project which depends on Couchbase .NET SDK
@@ -205,7 +205,7 @@ and can be found on https://www.nuget.org/packages/linq2Couchbase[NuGet] -- and
205205
PM> Install-Package Linq2Couchbase
206206
----
207207
208-
Once you have included the dependency, you can construct queries just like any other LINQ provider in a SQL-like fashion. Nearly all N1QL statements and functions are supported, for example:
208+
Once you have included the dependency, you can construct queries just like any other LINQ provider in a SQL-like fashion. Nearly all {sqlpp} statements and functions are supported, for example:
209209
210210
* INNER, LEFT Outer, and Index JOINs
211211
* Math and Date functions
@@ -214,6 +214,6 @@ Once you have included the dependency, you can construct queries just like any o
214214
* META keyword, NEST and UNNEST
215215
* Etc.
216216
217-
In addition to N1QL language features, Linq2Coucbase supports ORM features like Change-tracking, and mapping of JSON fields to keys and other POCO properties.
217+
In addition to {sqlpp} language features, Linq2Coucbase supports ORM features like Change-tracking, and mapping of JSON fields to keys and other POCO properties.
218218
The provider’s core object is the `BucketContext`, which is a Unit of Work (UoW) type object for performing querying and mutations on a per request basis.
219219
////

modules/hello-world/pages/sample-application.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ include::{version-common}@sdk:shared:partial$sample-application.adoc[tag=using]
2121

2222
== Sample App Backend
2323

24-
The https://github.com/couchbaselabs/{travel-sample-git-project}/tree/HEAD/try-cb-dotnet directory contains the `Startup.cs` entrypoint, and various `Models` and `Controllers` which contain functions for handling users, registration, and N1QL queries.
24+
The https://github.com/couchbaselabs/{travel-sample-git-project}/tree/HEAD/try-cb-dotnet directory contains the `Startup.cs` entrypoint, and various `Models` and `Controllers` which contain functions for handling users, registration, and {sqlpp} (formerly NIQL) queries.
2525

2626

2727
include::{version-common}@sdk:shared:partial$sample-application.adoc[tag=data-model]

modules/hello-world/pages/webui-cli-access.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You can access individual documents using the _command line_ and _web console_.
1818
== Command-Line
1919

2020
You can access documents in Couchbase using command line interfaces.
21-
You can use the `cbc` tool for simple document lookups by their IDs (or _keys_) and the xref:7.1@server:n1ql:n1ql-intro/cbq.adoc[cbq] tool to issue N1QL queries.
21+
You can use the `cbc` tool for simple document lookups by their IDs (or _keys_) and the xref:7.1@server:n1ql:n1ql-intro/cbq.adoc[cbq] tool to issue {sqlpp} (formerly N1QL) queries.
2222
This section will discuss the installation and usage of the `cbc` tool, and is targeted towards Linux and Mac OS X users.
2323

2424
NOTE: You can also use `cbc` on Windows by extracting the archive with libcouchbase.

modules/howtos/pages/analytics-using-sdk.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Analytics
2-
:description: Parallel data management for complex queries over many records, using a familiar N1QL-like syntax.
2+
:description: Parallel data management for complex queries over many records, using a familiar {sqlpp} syntax.
33
:page-topic-type: howto
44
:page-edition: Enterprise Edition
55

@@ -277,6 +277,6 @@ include::devguide:example$dotnet/Analytics.cs[tag=handle-scope,indent=0]
277277
////
278278
== Additional Resources
279279
280-
To learn more about using N1QL for Analytics -- the first commercial implementation of SQL++ -- see our link:https://sqlplusplus-tutorial.couchbase.com[Tutorial Introduction to SQL++ for SQL users].
280+
To learn more about using {sqlpp} for Analytics -- see our link:https://sqlplusplus-tutorial.couchbase.com[Tutorial Introduction to SQL++ for SQL users].
281281
282282
////

modules/howtos/pages/encrypting-using-sdk.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ For compatibility with SDK 2, you can configure the `CryptoManager` to use the o
168168
include::example$EncryptingUsingSdk.csx[tag=legacy_field_name_prefix,indent=0]
169169
----
170170
171-
Alternatively, you can https://forums.couchbase.com/t/replacing-field-name-prefix/28786[rename the existing fields using a N1QL statement].
171+
Alternatively, you can https://forums.couchbase.com/t/replacing-field-name-prefix/28786[rename the existing fields using a {sqlpp} statement] (formerly N1QL).
172172
173173
WARNING: In SDK 2, only top-level fields could be encrypted.
174174
SDK 3 allows encrypting fields at any depth.
175-
If you decide to rename the existing fields, make sure to do so _before_ writing any encrypted fields below the top level, otherwise it may be difficult to rename the nested fields using a generic N1QL statement.
175+
If you decide to rename the existing fields, make sure to do so _before_ writing any encrypted fields below the top level, otherwise it may be difficult to rename the nested fields using a generic {sqlpp} statement.
176176
177177
178178
[#configure-legacy-decrypters]

modules/howtos/pages/error-handling.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Please note that we do not provide any stability guarantees on the names and val
375375
| Contains the clientContext set by the user in the request options.
376376

377377
| service
378-
| Contains a map of service-specific properties (i.e. the opaque for key value, the statement for a N1QL query etc)
378+
| Contains a map of service-specific properties (i.e. the opaque for key value, the statement for a query etc)
379379

380380
| timings
381381
| Contains information like how long encoding, dispatch, total time etc. took in microseconds.

modules/howtos/pages/kv-operations.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ Another way of increasing network performance is to _pipeline_ operations with x
223223

224224
As well as various xref:concept-docs:data-model.adoc[Formats] of JSON, Couchbase can work directly with xref:concept-docs:nonjson.adoc[arbitary bytes, or binary format].
225225

226-
Our xref:n1ql-queries-with-sdk.adoc[Query Engine] enables retrieval of information using the SQL-like syntax of N1QL.
226+
Our xref:n1ql-queries-with-sdk.adoc[Query Engine] enables retrieval of information using the SQL-like syntax of {sqlpp} (formerly N1QL).

modules/howtos/pages/n1ql-queries-with-sdk.adoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
= Query
2-
:description: You can query for documents in Couchbase using the N1QL query language, a language based on SQL, but designed for structured and flexible JSON documents.
1+
= {sqlpp} Queries from the SDK
2+
:description: You can query for documents in Couchbase using the {sqlpp} query language, a language based on SQL, but designed for structured and flexible JSON documents.
33
:page-topic-type: howto
44
:page-aliases: n1ql-query
55
:page-pagination: full
@@ -12,13 +12,13 @@ Querying can solve typical programming tasks such as finding a user profile by e
1212

1313

1414

15-
Our query service uses N1QL, which will be fairly familiar to anyone who's used any dialect of SQL.
16-
xref:#additional-resources[Further resources] for learning about N1QL are listed at the bottom of the page.
17-
Before you get started you may wish to checkout the xref:server:n1ql:n1ql-language-reference/index.adoc[N1QL intro page], or just dive in with a query against xref:server:manage:manage-settings/install-sample-buckets.adoc[our travel sample data set].
15+
Our query service uses {sqlpp} (formerly N1QL), which will be fairly familiar to anyone who's used any dialect of SQL.
16+
xref:#additional-resources[Further resources] for learning about {sqlpp} are listed at the bottom of the page.
17+
Before you get started you may wish to checkout the xref:server:n1ql:n1ql-language-reference/index.adoc[{sqlpp} intro page], or just dive in with a query against xref:server:manage:manage-settings/install-sample-buckets.adoc[our travel sample data set].
1818
In this case, the one thing that you need to know is that in order to make a Bucket queryable, it must have at least one index defined.
1919
You can define a _primary_ index on a bucket. When executing queries, if a suitable index is not found, the primary index will ensure that the query will be executed anyway (the primary index should not be used in production to prevent scanning of the whole bucket).
2020

21-
To execute N1QL, you can use xref:server:tools:query-workbench.adoc[Query Workbench] (or you can use the xref:server:tools:cbq-shell.adoc[cbq command line tool]).
21+
To execute {sqlpp}, you can use xref:server:tools:query-workbench.adoc[Query Workbench] (or you can use the xref:server:tools:cbq-shell.adoc[cbq command line tool]).
2222
Open it, and enter the following:
2323

2424
[source,n1ql]
@@ -127,7 +127,7 @@ The query service provides an array of options to customize your query. The foll
127127

128128
Setting a staleness parameter for queries, with `scan_consistency`, enables a tradeoff between latency and (eventual) consistency.
129129

130-
* A N1QL query using the default *Not Bounded* Scan Consistency will not wait for any indexes to finish updating before running the query and returning results, meaning that results are returned quickly, but the query will not return any documents that are yet to be indexed.
130+
* A {sqlpp} query using the default *Not Bounded* Scan Consistency will not wait for any indexes to finish updating before running the query and returning results, meaning that results are returned quickly, but the query will not return any documents that are yet to be indexed.
131131

132132
.ScanConsistency (NotBounded)
133133
[source,csharp,indent=0]
@@ -201,12 +201,12 @@ A complete list of `QueryOptions` can be found in the https://docs.couchbase.com
201201

202202
== Additional Resources
203203

204-
NOTE: N1QL is not the only query option in Couchbase.
204+
NOTE: {sqlpp} is not the only query option in Couchbase.
205205
Be sure to check that xref:concept-docs:data-services.adoc[your use case fits your selection of query service].
206206

207-
* For a deeper dive into N1QL from the SDK, refer to our xref:concept-docs:n1ql-query.adoc[N1QL SDK concept doc].
208-
* The xref:7.1@server:n1ql:n1ql-language-reference/index.adoc[Server doc N1QL intro] introduces a complete guide to the N1QL language, including all of the latest additions.
209-
* The http://query.pub.couchbase.com/tutorial/#1[N1QL interactive tutorial] is a good introduction to the basics of N1QL use.
207+
* For a deeper dive into {sqlpp} from the SDK, refer to our xref:concept-docs:n1ql-query.adoc[{sqlpp} SDK concept doc].
208+
* The xref:7.1@server:n1ql:n1ql-language-reference/index.adoc[Server doc {sqlpp} intro] introduces a complete guide to the {sqlpp} language, including all of the latest additions.
209+
* The http://query.pub.couchbase.com/tutorial/#1[{sqlpp} interactive tutorial] is a good introduction to the basics of {sqlpp} use.
210210
* For scaling up queries, be sure to xref:7.1@server:learn:services-and-indexes/indexes/index-replication.adoc[read up on Indexes].
211-
* N1QL is for operational queries; for analytical workloads, read more on xref:concept-docs:http-services.adoc#long-running-queries-big-data[when to choose Analytics], our implementation of SQL++ available in the Enterprise Edition.
211+
* The Query Service is for operational queries; for analytical workloads, read more on xref:concept-docs:http-services.adoc#long-running-queries-big-data[when to choose Analytics].
212212

modules/howtos/pages/subdocument-operations.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ While full-document retrievals retrieve the entire document and full document up
2323

2424
You should use Sub-Document operations when you are modifying only portions of a document, and full-document operations when the contents of a document is to change significantly.
2525

26-
IMPORTANT: The Sub-Document operations described on this page are for _Key-Value_ requests only: they are not related to Sub-Document N1QL queries.
27-
(Sub-Document N1QL queries are explained in the section xref:n1ql-queries-with-sdk.adoc[Querying with N1QL].)
26+
IMPORTANT: The Sub-Document operations described on this page are for _Key-Value_ requests only: they are not related to Sub-Document {sqlpp} (formerly N1QL) queries.
27+
(Sub-Document {sqlpp} queries are explained in the section xref:n1ql-queries-with-sdk.adoc[Querying with {sqlpp}].)
2828

2929
In order to use Sub-Document operations you need to specify a _path_ indicating the location of the Sub-Document.
30-
The _path_ follows <<Path syntax,N1QL syntax>>.
30+
The _path_ follows <<Path syntax,{sqlpp} syntax>>.
3131
Considering the document:
3232

3333
.customer123.json
@@ -341,7 +341,7 @@ When receiving a top-level error code, you should traverse the results of the co
341341

342342
== Path Syntax
343343

344-
Path syntax largely follows N1QL conventions: A path is divided into components, with each component referencing a specific _level_ in a document hierarchy.
344+
Path syntax largely follows {sqlpp} conventions: A path is divided into components, with each component referencing a specific _level_ in a document hierarchy.
345345
Components are separated by dots (`.`) in the case where the element left of the dot is a dictionary, or by brackets (`[n]`) where the element left of the bracket is an array and `n` is the index within the array.
346346

347347
As a special extension, you can indicate the _last element_ of an array by using an index of `-1`, for example to get the last element of the array in the document
@@ -365,7 +365,7 @@ For example:
365365
must be referenced as `literal\"quote.array`.
366366

367367
If the path also has special path characters (i.e.
368-
a dot or brackets) it may be escaped using N1QL escapes.
368+
a dot or brackets) it may be escaped using {sqlpp} escapes.
369369
Considering the document
370370

371371
[source,json]

0 commit comments

Comments
 (0)