dbpwise.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 
11 /*----------------------------------------------------------------------+
12 | |
13 | Defines |
14 | |
15 +----------------------------------------------------------------------*/
16 
17 #define MTVS_NONE 0
18 #define MTVS_PENDING 1
19 #define MTVS_PAST 2
20 #define MTVS_CURRENT 3
21 
22 
23 /*======================================================================+
24 | |
25 | Function Definitions |
26 | |
27 +======================================================================*/
28 extern "C" {
29 
30 /*---------------------------------------------------------------------------------**/
62 DLLEXPORT Public int mdlDB_openCursorVersionWithID // <- SUCCESS or other error code
63 (
64 CursorID* cursID, // <- ID for cursor opened */
65 WCharCP SQLselectStmt, // -> identical to mdlDB_openCursorWithID
66 int versionSet // -> MTVS_PENDING, MTVS_PAST, MTVS_CURRENT
67 );
68 
69 
70 /*---------------------------------------------------------------------------------**/
84 DLLEXPORT Public long mdlDB_deletePendingVersion // <- Count of records deleted
85 (
86 WCharCP SQLdeleteStmt, // -> ex. DELETE FROM LOT WHERE MSLINK=5
87 int versionId // -> version ID of pending row
88 );
89 
91 }
#define Public
Definition: Bentley.h:161
Public long mdlDB_deletePendingVersion(WCharCP SQLdeleteStmt, int versionId)
Deletes pending updates from file and restores previous current version values.
wchar_t const * WCharCP
Definition: Bentley.h:224
#define DLLEXPORT
Definition: basedefs.h:137
Public int mdlDB_openCursorVersionWithID(CursorID *cursID, WCharCP SQLselectStmt, int versionSet)
long CursorID
Definition: dbdefs.h:168

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.