Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
45 lines (37 loc) · 1.22 KB

File metadata and controls

45 lines (37 loc) · 1.22 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
namespace Npgsql;
#pragma warning disable RS0016
/// <summary>
/// Specifies server type preference.
/// </summary>
public enum TargetSessionAttributes : byte
{
/// <summary>
/// Any successful connection is acceptable.
/// </summary>
Any = 0,
/// <summary>
/// Session must accept read-write transactions by default (that is, the server must not be in hot standby mode and the
/// <c>default_transaction_read_only</c> parameter must be off).
/// </summary>
ReadWrite = 1,
/// <summary>
/// Session must not accept read-write transactions by default (the converse).
/// </summary>
ReadOnly = 2,
/// <summary>
/// Server must not be in hot standby mode.
/// </summary>
Primary = 3,
/// <summary>
/// Server must be in hot standby mode.
/// </summary>
Standby = 4,
/// <summary>
/// First try to find a primary server, but if none of the listed hosts is a primary server, try again in <see cref="Any"/> mode.
/// </summary>
PreferPrimary = 5,
/// <summary>
/// First try to find a standby server, but if none of the listed hosts is a standby server, try again in <see cref="Any"/> mode.
/// </summary>
PreferStandby = 6,
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.