Commits

Michael Manfre committed 222ec32

Add extra ado constants.

Comments (0)

Files changed (1)

source/sqlserver_ado/ado_consts.py

 adUseClient = 3
 adUseServer = 2
 
+# CursorTypeEnum
+adOpenDynamic       = 2
+adOpenForwardOnly   = 0
+adOpenKeyset        = 1
+adOpenStatic        = 3
+adOpenUnspecified   = -1
+
 # CommandTypeEnum
 adCmdText = 1
 adCmdStoredProc = 4
 adFldMayBeNull = 0x40
 
 # ConnectModeEnum
-# To-do: Add the other adMode consts or remove this definition
-adModeShareExclusive = 12
+adModeUnknown           = 0
+adModeRead              = 1
+adModeWrite             = 2
+adModeReadWrite         = 3
+adModeShareDenyRead     = 4
+adModeShareDenyWrite    = 8
+adModeShareExclusive    = 12
+adModeShareDenyNone     = 16
+adModeRecursive         = 0x400000
 
 # XactAttributeEnum
 adXactCommitRetaining = 131072
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.