-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathEnums.cs
More file actions
42 lines (39 loc) · 1.54 KB
/
Copy pathEnums.cs
File metadata and controls
42 lines (39 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
namespace NpgsqlRest;
public enum RoutineType { Table, View, Function, Procedure, Other }
public enum CrudType { Select, Insert, Update, Delete }
public enum Method { GET, PUT, POST, DELETE, HEAD, OPTIONS, TRACE, PATCH, CONNECT }
public enum RequestParamType { QueryString, BodyJson }
public enum CommentHeader { None, Simple, Full }
public enum TextResponseNullHandling { EmptyString, NullLiteral, NoContent }
public enum QueryStringNullHandling { EmptyString, NullLiteral, Ignore }
public enum CommentsMode
{
/// <summary>
/// Routine comments are ignored.
/// </summary>
Ignore,
/// <summary>
/// Creates all endpoints and parses comments for to configure endpoint meta data.
/// </summary>
ParseAll,
/// <summary>
/// Creates only endpoints from routines containing a comment with HTTP tag and and configures endpoint meta data.
/// </summary>
OnlyWithHttpTag
}
public enum RequestHeadersMode
{
/// <summary>
/// Ignore request headers, don't send them to PostgreSQL (default).
/// </summary>
Ignore,
/// <summary>
/// Send all request headers as json object to PostgreSQL by executing set_config('context.headers', headers, false) before routine call.
/// </summary>
Context,
/// <summary>
/// Send all request headers as json object to PostgreSQL as default routine parameter with name set by RequestHeadersParameterName option.
/// This parameter has to have the default value (null) in the routine and have to be text or json type.
/// </summary>
Parameter
}