-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViewQueryMode.cs
More file actions
25 lines (23 loc) · 778 Bytes
/
ViewQueryMode.cs
File metadata and controls
25 lines (23 loc) · 778 Bytes
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
namespace Birko.Data.SQL
{
/// <summary>
/// Controls how view queries are executed against the database.
/// </summary>
public enum ViewQueryMode
{
/// <summary>
/// Always generate SELECT with joins from attributes (current default behavior).
/// </summary>
OnTheFly = 0,
/// <summary>
/// Always query against the persistent database VIEW by name.
/// Assumes the view has been created in the database.
/// </summary>
Persistent = 1,
/// <summary>
/// Try querying the persistent view first; fall back to on-the-fly SELECT if the view doesn't exist.
/// Caches the view existence check result per view name.
/// </summary>
Auto = 2,
}
}