iOSSQLiteDatabase.AttachDatabase

From Xojo Documentation

Revision as of 19:49, 22 August 2018 by PLefebvre (talk | contribs) (Created page with "{{MethodBox | name = AttachDatabase | ownertype = class | scope = public | parameters = file As FolderItem, databaseName As Text, encryptionKey As [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.