Android.Database.Sqlite.DatabaseOpenFlags Enumeration
Enumerates values returned by several methods of Android.Database.Sqlite.DatabaseOpenFlags and taken as a parameter of the SQLiteDatabase.OpenDatabase, and SQLiteDatabase.OpenDatabase members.

Syntax

[System.Flags]
public enum DatabaseOpenFlags

Remarks

Enumerates values returned by the following: and taken as a parameter of the SQLiteDatabase.OpenDatabase, and SQLiteDatabase.OpenDatabase members.

Members

Member NameDescription
CreateIfNecessaryOpen flag: Flag for SQLiteDatabase.OpenDatabase(string, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory) to create the database file if it does not already exist.
NoLocalizedCollators

SQLiteDatabase.OpenDatabase(string, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory)

This causes the collator LOCALIZED not to be created. You must be consistent when using this flag to use the setting the database was created with. If this is set, SQLiteDatabase.SetLocale(Java.Util.Locale) will do nothing.

OpenReadonlyOpen flag: Flag for SQLiteDatabase.OpenDatabase(string, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory) to open the database for reading only. This is the only reliable way to open a database if the disk may be full.
OpenReadwrite

SQLiteDatabase.OpenDatabase(string, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory)

Note that the value of this flag is 0, so it is the default.

Requirements

Namespace: Android.Database.Sqlite
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0