Executes an ad-hoc N1QL query against a Couchbase Server.
Namespace: Couchbase.N1QLAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
SyntaxIQueryResult<T> Query<T>(
Uri server,
string query
)
IQueryResult<T> Query<T>(
Uri server,
string query
)
Function Query(Of T) (
server As Uri,
query As String
) As IQueryResult(Of T)
Function Query(Of T) (
server As Uri,
query As String
) As IQueryResult(Of T)
generic<typename T>
IQueryResult<T>^ Query(
Uri^ server,
String^ query
)
generic<typename T>
IQueryResult<T>^ Query(
Uri^ server,
String^ query
)
abstract Query :
server : Uri *
query : string -> IQueryResult<'T>
abstract Query :
server : Uri *
query : string -> IQueryResult<'T>
Parameters
- server
- Type: System.Uri
The Uri of the server.
- query
- Type: System.String
A string containing a N1QL query.
Type Parameters- T
- The Type to cast the resulting rows to.
Return Value
Type:
IQueryResult<T>An
IQueryResult<T> implementation representing the results of the query.
See Also