code: func (s *Store) createDatabase() error {
  	var db *sdb.DB
  	var err error
  	if !s.dbConf.Memory {
  		// as it will be rebuilt from (possibly) a snapshot and committed log entries.
  		if err := os.Remove(s.dbPath); err != nil && !os.IsNotExist(err) {
  			return err
  		}
  		db, err = sdb.New(s.dbPath, s.dbConf.DSN, false)
  		if err != nil {
  			return err
  		}
  		s.logger.Println("SQLite database opened at", s.dbPath)
  	} else {
  		db, err = sdb.New(s.dbPath, s.dbConf.DSN, true)
  		if err != nil {
  			return err
  		}
  		s.logger.Println("SQLite in-memory database opened")
  	}
  	s.db = db
  	return nil
  }
docs: // createDatabase creates the the in-memory or file-based database.