/// <summary> /// Releases all resource used by the <see cref="SQLiteUnityKit.SqliteQuery"/> object. /// </summary> /// <remarks>Call <see cref="Dispose"/> when you are finished using the <see cref="SQLiteUnityKit.SqliteQuery"/>. The /// <see cref="Dispose"/> method leaves the <see cref="SQLiteUnityKit.SqliteQuery"/> in an unusable state. After /// calling <see cref="Dispose"/>, you must release all references to the <see cref="SQLiteUnityKit.SqliteQuery"/> so /// the garbage collector can reclaim the memory that the <see cref="SQLiteUnityKit.SqliteQuery"/> was occupying.</remarks> public void Dispose() { if(null != this.Connection) { this.Connection = null; } this.CommandText = null; }
/// <summary> /// Initializes a new instance of the <see cref="SQLiteUnityKit.SqliteQuery"/> class. /// </summary> public SqliteQuery(SqliteDatabase connection) { this.Connection = connection; }
/// <summary> /// Initializes a new instance of the <see cref="SQLiteUnityKit.SqliteQuery"/> class. /// </summary> /// <param name="connection">Connection.</param> /// <param name="query">Query.</param> public SqliteQuery(SqliteDatabase connection, string query) : this(connection) { this.CommandText = query; }