You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -139,7 +139,7 @@ If index-maintenance is running behind, the query waits for it to catch up.
139
139
* `request_plus`: Executes the query, requiring the indexes first to be updated to the timestamp of the current query-request.
140
140
If index-maintenance is running behind, the query waits for it to catch up.
141
141
142
-
For N1QL, the default consistency is `not_bounded`.
142
+
For {sqlpp}, the default consistency is `not_bounded`.
143
143
////
144
144
Consider the following snippet:
145
145
@@ -191,10 +191,10 @@ LINQ is a community project.
191
191
Although it works well with Couchbase, it is not part of the officially-supported product.
192
192
193
193
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.
195
195
It implements https://msdn.microsoft.com/en-us/library/mt693024.aspx[Microsoft’s language integrated query extensions to the C# language],
196
196
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.
198
198
If you have used any other LINQ provider, you will find its familiarity and consistency make it an easy transition.
199
199
200
200
_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
205
205
PM> Install-Package Linq2Couchbase
206
206
----
207
207
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:
209
209
210
210
* INNER, LEFT Outer, and Index JOINs
211
211
* Math and Date functions
@@ -214,6 +214,6 @@ Once you have included the dependency, you can construct queries just like any o
214
214
* META keyword, NEST and UNNEST
215
215
* Etc.
216
216
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.
218
218
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.
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.
Copy file name to clipboardExpand all lines: modules/hello-world/pages/webui-cli-access.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ You can access individual documents using the _command line_ and _web console_.
18
18
== Command-Line
19
19
20
20
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.
22
22
This section will discuss the installation and usage of the `cbc` tool, and is targeted towards Linux and Mac OS X users.
23
23
24
24
NOTE: You can also use `cbc` on Windows by extracting the archive with libcouchbase.
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].
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).
172
172
173
173
WARNING: In SDK 2, only top-level fields could be encrypted.
174
174
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.
Copy file name to clipboardExpand all lines: modules/howtos/pages/kv-operations.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,4 +223,4 @@ Another way of increasing network performance is to _pipeline_ operations with x
223
223
224
224
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].
225
225
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).
Copy file name to clipboardExpand all lines: modules/howtos/pages/n1ql-queries-with-sdk.adoc
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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.
3
3
:page-topic-type: howto
4
4
:page-aliases: n1ql-query
5
5
:page-pagination: full
@@ -12,13 +12,13 @@ Querying can solve typical programming tasks such as finding a user profile by e
12
12
13
13
14
14
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].
18
18
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.
19
19
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).
20
20
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]).
22
22
Open it, and enter the following:
23
23
24
24
[source,n1ql]
@@ -127,7 +127,7 @@ The query service provides an array of options to customize your query. The foll
127
127
128
128
Setting a staleness parameter for queries, with `scan_consistency`, enables a tradeoff between latency and (eventual) consistency.
129
129
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.
131
131
132
132
.ScanConsistency (NotBounded)
133
133
[source,csharp,indent=0]
@@ -201,12 +201,12 @@ A complete list of `QueryOptions` can be found in the https://docs.couchbase.com
201
201
202
202
== Additional Resources
203
203
204
-
NOTE: N1QL is not the only query option in Couchbase.
204
+
NOTE: {sqlpp} is not the only query option in Couchbase.
205
205
Be sure to check that xref:concept-docs:data-services.adoc[your use case fits your selection of query service].
206
206
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.
210
210
* 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].
Copy file name to clipboardExpand all lines: modules/howtos/pages/subdocument-operations.adoc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ While full-document retrievals retrieve the entire document and full document up
23
23
24
24
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.
25
25
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}].)
28
28
29
29
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>>.
31
31
Considering the document:
32
32
33
33
.customer123.json
@@ -341,7 +341,7 @@ When receiving a top-level error code, you should traverse the results of the co
341
341
342
342
== Path Syntax
343
343
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.
345
345
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.
346
346
347
347
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:
365
365
must be referenced as `literal\"quote.array`.
366
366
367
367
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.
0 commit comments