Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Cleanup integration between the session extension classes and the SQLiteConnection class. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sessions |
Files: | files | file ages | folders |
SHA1: |
7529b50e971e872f2f0c2feb4930b688 |
User & Date: | mistachkin 2017-10-05 23:10:54.791 |
Context
2017-10-06
| ||
15:51 | Further work on the SQLiteMemoryChangeSet class. check-in: 5dc5e48cb0 user: mistachkin tags: sessions | |
2017-10-05
| ||
23:10 | Cleanup integration between the session extension classes and the SQLiteConnection class. check-in: 7529b50e97 user: mistachkin tags: sessions | |
22:55 | The 'Apply' methods logically belong to the change set, not the session. check-in: baed0aa503 user: mistachkin tags: sessions | |
Changes
Changes to System.Data.SQLite/SQLiteConnection.cs.
︙ | |||
3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 | 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | /// Forwards to the local <see cref="CreateCommand" /> function. /// </summary> /// <returns></returns> protected override DbCommand CreateDbCommand() { return CreateCommand(); } #if INTEROP_SESSION_EXTENSION /// <summary> /// Attempts to create a new <see cref="ISQLiteSession" /> object instance /// using this connection and the specified database name. /// </summary> /// <param name="databaseName"> /// The name of the database for the newly created session. /// </param> /// <returns> /// The newly created session -OR- null if it cannot be created. /// </returns> public ISQLiteSession CreateSession( string databaseName ) { CheckDisposed(); return new SQLiteSession(GetNativeHandle(this), _flags, databaseName); } /// <summary> /// Attempts to create a new <see cref="ISQLiteChangeSet" /> object instance /// using this connection and the specified raw data. /// </summary> /// <param name="rawData"> /// The raw data that contains a change set (or patch set). /// </param> /// <returns> /// The newly created change set -OR- null if it cannot be created. /// </returns> public ISQLiteChangeSet CreateChangeSet( byte[] rawData ) { CheckDisposed(); return new SQLiteMemoryChangeSet( rawData, GetNativeHandle(this), _flags, null); } /// <summary> /// Attempts to create a new <see cref="ISQLiteChangeSet" /> object instance /// using this connection and the specified stream. /// </summary> /// <param name="stream"> /// The stream where the raw data that contains a change set (or patch set) /// may be read. /// </param> /// <returns> /// The newly created change set -OR- null if it cannot be created. /// </returns> public ISQLiteChangeSet CreateChangeSet( Stream stream ) { CheckDisposed(); return new SQLiteStreamChangeSet( stream, GetNativeHandle(this), _flags, null); } #endif /// <summary> /// Returns the data source file name without extension or path. /// </summary> #if !PLATFORM_COMPACTFRAMEWORK [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] #endif |
︙ |
Changes to System.Data.SQLite/SQLiteSessions.cs.
︙ | |||
548 549 550 551 552 553 554 | 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 | - + + + - - - + + + + + - + + - - + - - - - - - - | /////////////////////////////////////////////////////////////////////////// #region SQLiteSession Class public sealed class SQLiteSession : ISQLiteSession, IDisposable { #region Private Data |
︙ | |||
748 749 750 751 752 753 754 | 745 746 747 748 749 750 751 752 753 754 755 756 757 758 | - - | public void CreateChangeSet( Stream stream ) { CheckDisposed(); CheckHandle(); |
︙ | |||
800 801 802 803 804 805 806 | 795 796 797 798 799 800 801 802 803 804 805 806 807 808 | - - | public void CreatePatchSet( Stream stream ) { CheckDisposed(); CheckHandle(); |
︙ |