Functions to open the database in read-only mode to work with read replicas:
// OpenRead opens an existing database at the given path in read-only mode.
func OpenRead(path string, opts *Options) (*DB, error)
// OpenReadDB connects to an existing SQL database in read-only mode.
func OpenReadDB(db *sql.DB, opts *Options) (*DB, error)
Functions to open the database in read-only mode to work with read replicas: