System.Data.SQLite
Check-in [62d2f9e5bd]
Not logged in

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

Overview
Comment:Add disposal checks to the SQLiteModuleNoop class.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | virtualTables
Files: files | file ages | folders
SHA1: 62d2f9e5bdf718b785f8d1fb5e7812a5127687de
User & Date: mistachkin 2013-06-08 04:15:14
Context
2013-06-12
21:43
Adjust how the index related input/output structures are represented. check-in: 978cda574b user: mistachkin tags: virtualTables
2013-06-08
04:15
Add disposal checks to the SQLiteModuleNoop class. check-in: 62d2f9e5bd user: mistachkin tags: virtualTables
02:36
Reorganize native interop definitions into the UnsafeNativeMethods class. Enable compilation for the .NET Compact Framework. check-in: 2a9118d124 user: mistachkin tags: virtualTables
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

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

    54     54           public override SQLiteErrorCode Create(
    55     55               SQLiteConnection connection,
    56     56               IntPtr pClientData,
    57     57               string[] argv,
    58     58               ref string error
    59     59               )
    60     60           {
           61  +            CheckDisposed();
    61     62               throw new NotImplementedException();
    62     63           }
    63     64   
    64     65           ///////////////////////////////////////////////////////////////////////
    65     66   
    66     67           public override SQLiteErrorCode Connect(
    67     68               SQLiteConnection connection,
    68     69               IntPtr pClientData,
    69     70               string[] argv,
    70     71               ref string error
    71     72               )
    72     73           {
           74  +            CheckDisposed();
    73     75               throw new NotImplementedException();
    74     76           }
    75     77   
    76     78           ///////////////////////////////////////////////////////////////////////
    77     79   
    78     80           public override SQLiteErrorCode BestIndex(
    79     81               ref SQLiteIndex index
    80     82               )
    81     83           {
           84  +            CheckDisposed();
    82     85               throw new NotImplementedException();
    83     86           }
    84     87   
    85     88           ///////////////////////////////////////////////////////////////////////
    86     89   
    87     90           public override SQLiteErrorCode Disconnect()
    88     91           {
           92  +            CheckDisposed();
    89     93               throw new NotImplementedException();
    90     94           }
    91     95   
    92     96           ///////////////////////////////////////////////////////////////////////
    93     97   
    94     98           public override SQLiteErrorCode Destroy()
    95     99           {
          100  +            CheckDisposed();
    96    101               throw new NotImplementedException();
    97    102           }
    98    103   
    99    104           ///////////////////////////////////////////////////////////////////////
   100    105   
   101    106           public override SQLiteErrorCode Open(
   102    107               ref SQLiteVirtualTableCursor cursor
   103    108               )
   104    109           {
          110  +            CheckDisposed();
   105    111               throw new NotImplementedException();
   106    112           }
   107    113   
   108    114           ///////////////////////////////////////////////////////////////////////
   109    115   
   110    116           public override SQLiteErrorCode Close(
   111    117               SQLiteVirtualTableCursor cursor
   112    118               )
   113    119           {
          120  +            CheckDisposed();
   114    121               throw new NotImplementedException();
   115    122           }
   116    123   
   117    124           ///////////////////////////////////////////////////////////////////////
   118    125   
   119    126           public override SQLiteErrorCode Filter(
   120    127               SQLiteVirtualTableCursor cursor,
   121    128               int idxNum,
   122    129               string idxStr,
   123    130               SQLiteValue[] argv
   124    131               )
   125    132           {
          133  +            CheckDisposed();
   126    134               throw new NotImplementedException();
   127    135           }
   128    136   
   129    137           ///////////////////////////////////////////////////////////////////////
   130    138   
   131    139           public override SQLiteErrorCode Next(
   132    140               SQLiteVirtualTableCursor cursor
   133    141               )
   134    142           {
          143  +            CheckDisposed();
   135    144               throw new NotImplementedException();
   136    145           }
   137    146   
   138    147           ///////////////////////////////////////////////////////////////////////
   139    148   
   140    149           public override SQLiteErrorCode Eof(
   141    150               SQLiteVirtualTableCursor cursor
   142    151               )
   143    152           {
          153  +            CheckDisposed();
   144    154               throw new NotImplementedException();
   145    155           }
   146    156   
   147    157           ///////////////////////////////////////////////////////////////////////
   148    158   
   149    159           public override SQLiteErrorCode Column(
   150    160               SQLiteVirtualTableCursor cursor,
   151    161               SQLiteContext context,
   152    162               int index
   153    163               )
   154    164           {
          165  +            CheckDisposed();
   155    166               throw new NotImplementedException();
   156    167           }
   157    168   
   158    169           ///////////////////////////////////////////////////////////////////////
   159    170   
   160    171           public override SQLiteErrorCode RowId(
   161    172               SQLiteVirtualTableCursor cursor,
   162    173               ref long rowId
   163    174               )
   164    175           {
          176  +            CheckDisposed();
   165    177               throw new NotImplementedException();
   166    178           }
   167    179   
   168    180           ///////////////////////////////////////////////////////////////////////
   169    181   
   170    182           public override SQLiteErrorCode Update(
   171    183               SQLiteValue[] values,
   172    184               ref long rowId
   173    185               )
   174    186           {
          187  +            CheckDisposed();
   175    188               throw new NotImplementedException();
   176    189           }
   177    190   
   178    191           ///////////////////////////////////////////////////////////////////////
   179    192   
   180    193           public override SQLiteErrorCode Begin()
   181    194           {
          195  +            CheckDisposed();
   182    196               throw new NotImplementedException();
   183    197           }
   184    198   
   185    199           ///////////////////////////////////////////////////////////////////////
   186    200   
   187    201           public override SQLiteErrorCode Sync()
   188    202           {
          203  +            CheckDisposed();
   189    204               throw new NotImplementedException();
   190    205           }
   191    206   
   192    207           ///////////////////////////////////////////////////////////////////////
   193    208   
   194    209           public override SQLiteErrorCode Commit()
   195    210           {
          211  +            CheckDisposed();
   196    212               throw new NotImplementedException();
   197    213           }
   198    214   
   199    215           ///////////////////////////////////////////////////////////////////////
   200    216   
   201    217           public override SQLiteErrorCode Rollback()
   202    218           {
          219  +            CheckDisposed();
   203    220               throw new NotImplementedException();
   204    221           }
   205    222   
   206    223           ///////////////////////////////////////////////////////////////////////
   207    224   
   208    225           public override SQLiteErrorCode FindFunction(
   209    226               string zName,
   210    227               ref SQLiteFunction function,
   211    228               object[] args
   212    229               )
   213    230           {
          231  +            CheckDisposed();
   214    232               throw new NotImplementedException();
   215    233           }
   216    234   
   217    235           ///////////////////////////////////////////////////////////////////////
   218    236   
   219    237           public override SQLiteErrorCode Rename(
   220    238               string zNew
   221    239               )
   222    240           {
          241  +            CheckDisposed();
   223    242               throw new NotImplementedException();
   224    243           }
   225    244   
   226    245           ///////////////////////////////////////////////////////////////////////
   227    246   
   228    247           public override SQLiteErrorCode Savepoint(
   229    248               int iSavepoint
   230    249               )
   231    250           {
          251  +            CheckDisposed();
   232    252               throw new NotImplementedException();
   233    253           }
   234    254   
   235    255           ///////////////////////////////////////////////////////////////////////
   236    256   
   237    257           public override SQLiteErrorCode Release(
   238    258               int iSavepoint
   239    259               )
   240    260           {
          261  +            CheckDisposed();
   241    262               throw new NotImplementedException();
   242    263           }
   243    264   
   244    265           ///////////////////////////////////////////////////////////////////////
   245    266   
   246    267           public override SQLiteErrorCode RollbackTo(
   247    268               int iSavepoint
   248    269               )
   249    270           {
          271  +            CheckDisposed();
   250    272               throw new NotImplementedException();
   251    273           }
   252    274           #endregion
   253    275       }
   254    276   }