public void open ( String filename , int mode ) throws jsqlite . Exception { this . filename = filename ; if ( ( mode & 0200 ) != 0 ) { mode = jsqlite . Constants . SQLITE_OPEN_READWRITE | jsqlite . Constants . SQLITE_OPEN_CREATE ; } else if ( ( mode & 0400 ) != 0 ) { mode = jsqlite . Constants . SQLITE_OPEN_READONLY ; } synchronized ( this ) { try { _open4 ( filename , mode , null , false ) ; } catch ( Exception | OutOfMemoryError se ) { throw se ; } catch ( Throwable t ) { _open ( filename , mode ) ; } } }
Open an SQLite database file .