System.Data.SQLite
Check-in [ff93dd1274]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add the new connection flags.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | customDataTypes
Files: files | file ages | folders
SHA1: ff93dd12748bb7c401861705dc934f7e7abdc1bd
User & Date: mistachkin 2016-06-19 02:59:16
Context
2016-06-19
02:59
Integrate the new custom database type callbacks into the data reader class. check-in: df67a84c21 user: mistachkin tags: customDataTypes
02:59
Add the new connection flags. check-in: ff93dd1274 user: mistachkin tags: customDataTypes
02:22
Add classes to contain the per-connection type callbacks and mappings. check-in: 6a75a30b62 user: mistachkin tags: customDataTypes
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to System.Data.SQLite/SQLiteBase.cs.

  1156   1156   
  1157   1157         /// <summary>
  1158   1158         /// When returning column values as a <see cref="String" />, skip
  1159   1159         /// verifying their affinity.
  1160   1160         /// </summary>
  1161   1161         NoVerifyTextAffinity = 0x200000000,
  1162   1162   
         1163  +      /// <summary>
         1164  +      /// Enable using per-connection mappings between type names and
         1165  +      /// <see cref="SQLiteBindValueCallback" /> values.  Also see the
         1166  +      /// <see cref="SQLiteConnection.ClearTypeCallbacks" />,
         1167  +      /// <see cref="SQLiteConnection.TryGetTypeCallbacks" />, and
         1168  +      /// <see cref="SQLiteConnection.SetTypeCallbacks" /> methods.
         1169  +      /// </summary>
         1170  +      UseConnectionBindValueCallbacks = 0x400000000,
         1171  +
         1172  +      /// <summary>
         1173  +      /// Enable using per-connection mappings between type names and
         1174  +      /// <see cref="SQLiteReadValueCallback" /> values.  Also see the
         1175  +      /// <see cref="SQLiteConnection.ClearTypeCallbacks" />,
         1176  +      /// <see cref="SQLiteConnection.TryGetTypeCallbacks" />, and
         1177  +      /// <see cref="SQLiteConnection.SetTypeCallbacks" /> methods.
         1178  +      /// </summary>
         1179  +      UseConnectionReadValueCallbacks = 0x800000000,
         1180  +
  1163   1181         /// <summary>
  1164   1182         /// When binding parameter values or returning column values, always
  1165   1183         /// treat them as though they were plain text (i.e. no numeric,
  1166   1184         /// date/time, or other conversions should be attempted).
  1167   1185         /// </summary>
  1168   1186         BindAndGetAllAsText = BindAllAsText | GetAllAsText,
  1169   1187   
................................................................................
  1187   1205         /// date/time, or other conversions should be attempted) and always
  1188   1206         /// use the invariant culture when converting their values to strings
  1189   1207         /// or from strings.
  1190   1208         /// </summary>
  1191   1209         ConvertAndBindAndGetAllAsInvariantText = BindAndGetAllAsText |
  1192   1210                                                  ConvertAndBindInvariantText,
  1193   1211   
         1212  +      /// <summary>
         1213  +      /// Enables use of all per-connection value handling callbacks.
         1214  +      /// </summary>
         1215  +      UseAllConnectionValueCallbacks = UseConnectionBindValueCallbacks |
         1216  +                                       UseConnectionReadValueCallbacks,
         1217  +
  1194   1218         /// <summary>
  1195   1219         /// Enable all logging.
  1196   1220         /// </summary>
  1197   1221   #if INTEROP_VIRTUAL_TABLE
  1198   1222         LogAll = LogPrepare | LogPreBind | LogBind |
  1199   1223                  LogCallbackException | LogBackup | LogModuleError |
  1200   1224                  LogModuleException,