iOSSQLiteDatabase.AttachDatabase

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

iOSSQLiteDatabase.AttachDatabase(file As FolderItem, databaseName As Text, encryptionKey As Text = "") As Boolean

Supported on Mobile(iOS).

Attaches the SQLite database referred to by file to the database. It gives the newly attached database the name databaseName. If the database is encrypted, be sure to specify the encryptionKey.

Notes

You can attach one or more databases to a currently connected iOSSQLiteDatabase so that you can work with all the databases at one time. This can be a useful way to copy data between databases, for example.

If tables in the attached database have the same name as tables in the primary database, you can refer to them using databaseName as the prefix.