database.open()


打开 DatabaseSync 构造函数的 path 参数中指定的数据库。仅当未通过构造函数打开数据库时,才应使用此方法。如果数据库已打开,则抛出异常。

¥Opens the database specified in the path argument of the DatabaseSync constructor. This method should only be used when the database is not opened via the constructor. An exception is thrown if the database is already open.