code: 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);
              }
          }
      }
docs: Open an SQLite database file.
  
  @param filename the name of the database file
  @param mode open mode (e.g. SQLITE_OPEN_READONLY)
  @throws jsqlite.Exception