Class SqlPostRequestBody
Implements
Inherited Members
Namespace: Grist4NET.Kiota.Docs.Item.Sql
Assembly: Grist4NET.Kiota.dll
Syntax
public class SqlPostRequestBody : IAdditionalDataHolder, IParsable
Constructors
SqlPostRequestBody()
Instantiates a new SqlPostRequestBody and sets the default values.
Declaration
public SqlPostRequestBody()
Properties
AdditionalData
Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
Declaration
public IDictionary<string, object> AdditionalData { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
Args
Parameters for the query.
Declaration
public List<double?> Args { get; set; }
Property Value
| Type | Description |
|---|---|
| List<double?> |
Sql
The SQL query to run. Must be a single SELECT statement, with no trailing semicolon. WITH clauses are permitted. All Grist documents are currently SQLite databases, and the SQL query is interpreted and run by SQLite, with various defensive measures. Statements that would modify the database are not supported.
Declaration
public string Sql { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Timeout
Timeout after which operations on the document will be interrupted. Specified in milliseconds. Defaults to 1000 (1 second). This default is controlled by an optional environment variable read by the Grist app, GRIST_SQL_TIMEOUT_MSEC. The default cannot be exceeded, only reduced.
Declaration
public double? Timeout { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
Methods
CreateFromDiscriminatorValue(IParseNode)
Creates a new instance of the appropriate class based on discriminator value
Declaration
public static SqlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
Parameters
| Type | Name | Description |
|---|---|---|
| IParseNode | parseNode | The parse node to use to read the discriminator value and create the object |
Returns
| Type | Description |
|---|---|
| SqlPostRequestBody |
GetFieldDeserializers()
The deserialization information for the current model
Declaration
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
Returns
| Type | Description |
|---|---|
| IDictionary<string, Action<IParseNode>> | A IDictionary<string, Action<IParseNode>> |
Serialize(ISerializationWriter)
Serializes information the current object
Declaration
public virtual void Serialize(ISerializationWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISerializationWriter | writer | Serialization writer to use to serialize this model |