-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathEnums.cs
More file actions
95 lines (87 loc) · 2.93 KB
/
Copy pathEnums.cs
File metadata and controls
95 lines (87 loc) · 2.93 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
namespace NpgsqlRest;
public enum RoutineType { Table, View, Function, Procedure, Other }
public enum CrudType { Select, Insert, Update, Delete }
public enum Method { GET, PUT, POST, DELETE }
public enum RequestParamType { QueryString, BodyJson }
public enum ParamType { QueryString, BodyJson, BodyParam, HeaderParam, PathParam }
public enum CommentHeader { None, Simple, Full }
public enum TextResponseNullHandling { EmptyString, NullLiteral, NoContent }
public enum QueryStringNullHandling { EmptyString, NullLiteral, Ignore }
public enum SslRequirement { Ignore, Warning, Required }
public enum PostgresNoticeLevels { INFO, NOTICE, WARNING }
public enum ServiceProviderObject
{
/// <summary>
/// Connection is not provided in service provider. Connection is supplied either by ConnectionString or by DataSource option.
/// </summary>
None,
/// <summary>
/// NpgsqlRest attempts to get NpgsqlDataSource from service provider (assuming one is provided).
/// </summary>
NpgsqlDataSource,
/// <summary>
/// NpgsqlRest attempts to get NpgsqlConnection from service provider (assuming one is provided).
/// </summary>
NpgsqlConnection
}
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
}
public enum PostgresConnectionNoticeLoggingMode
{
/// <summary>
/// Log only connection messages.
/// </summary>
MessageOnly,
/// <summary>
/// Log last stack trace and message.
/// </summary>
FirstStackFrameAndMessage,
/// <summary>
/// Log full stack trace and message.
/// </summary>
FullStackAndMessage
}
public enum SseEventsScope
{
/// <summary>
/// All sessions with matching security context (RequiresAuthorization + AuthorizeRoles)
/// </summary>
Matching,
/// <summary>
/// All authorized sessions
/// </summary>
Authorize,
/// <summary>
/// All connected sessions regardless of authorization
/// </summary>
All
}