Fauna .NET Driver
0.1.0-beta
Loading...
Searching...
No Matches
repo.git
Fauna
Query
IQueryFragment.cs
Go to the documentation of this file.
1
using
Fauna.Mapping
;
2
using
Fauna.Serialization
;
3
using
System.Text;
4
5
namespace
Fauna
;
6
10
public
interface
IQueryFragment
11
{
16
void
Serialize
(
MappingContext
ctx,
Utf8FaunaWriter
writer);
17
}
18
23
public
static
class
IQueryFragmentExtensions
24
{
30
public
static
string
Serialize(
this
IQueryFragment
fragment,
MappingContext
ctx)
31
{
32
using
var ms =
new
MemoryStream();
33
using
var fw =
new
Utf8FaunaWriter
(ms);
34
fragment.
Serialize
(ctx, fw);
35
fw.Flush();
36
return
Encoding.UTF8.GetString(ms.ToArray());
37
}
38
}
Fauna.Mapping.MappingContext
Definition
MappingContext.cs:6
Fauna.Serialization.Utf8FaunaWriter
Provides functionality for writing data in a streaming manner to a buffer or a stream.
Definition
Utf8FaunaWriter.cs:12
Fauna.IQueryFragment
Represents the base interface for a query fragment used for FQL query construction.
Definition
IQueryFragment.cs:11
Fauna.IQueryFragment.Serialize
void Serialize(MappingContext ctx, Utf8FaunaWriter writer)
Serializes the query fragment into the provided stream.
Fauna.Mapping
Definition
Attributes.cs:1
Fauna.Serialization
Definition
CheckedDeserializer.cs:3
Fauna
Definition
Client.cs:9
Generated by
1.9.8