DatabaseUtils.CreateDbFromSqlStatements(Context, String, Int32, String) DatabaseUtils.CreateDbFromSqlStatements(Context, String, Int32, String) Method

Definition

Creates a db and populates it with the sql statements in sqlStatements.

[Android.Runtime.Register("createDbFromSqlStatements", "(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;)V", "")]
public static void CreateDbFromSqlStatements (Android.Content.Context context, string dbName, int dbVersion, string sqlStatements);
static member CreateDbFromSqlStatements : Android.Content.Context * string * int * string -> unit

Parameters

context
Context Context

the context to use to create the db

dbName
String String

the name of the db to create

dbVersion
Int32 Int32

the version to set on the db

sqlStatements
String String

the statements to use to populate the db. This should be a single string of the form returned by sqlite3's .dump command (statements separated by semicolons)

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to