Skip to content

Commit

Permalink
Merge branch 'master' of github.com:j256/ormlite-android
Browse files Browse the repository at this point in the history
  • Loading branch information
Gray Watson committed Nov 14, 2020
2 parents 361276b + aebf8c5 commit f8b3ae0
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.sql.SQLException;

import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
Expand Down Expand Up @@ -55,6 +56,25 @@ public OrmLiteSqliteOpenHelper(Context context, String databaseName, CursorFacto
logger.trace("{}: constructed connectionSource {}", this, connectionSource);
}

/**
* @param context
* Associated content from the application. This is needed to locate the database.
* @param databaseName
* Name of the database we are opening.
* @param factory
* Cursor factory or null if none.
* @param databaseVersion
* Version of the database we are opening. This causes {@link #onUpgrade(SQLiteDatabase, int, int)} to be
* called if the stored database is a different version.
* @param errorHandler
* The <a href="https://developer.android.com/reference/android/database/DatabaseErrorHandler">DatabaseErrorHandler</a> to be used when sqlite reports database
* corruption, or null to use the default error handler.
*/
public OrmLiteSqliteOpenHelper(Context context, String databaseName, CursorFactory factory, int databaseVersion, DatabaseErrorHandler errorHandler) {
super(context, databaseName, factory, databaseVersion, errorHandler);
logger.trace("{}: constructed connectionSource {}", this, connectionSource);
}

/**
* Same as the other constructor with the addition of a file-id of the table config-file. See
* {@link OrmLiteConfigUtil} for details.
Expand Down

0 comments on commit f8b3ae0

Please sign in to comment.