Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: read-only mode (#30) #31

Merged
merged 1 commit into from
Jul 22, 2024
Merged

feat: read-only mode (#30) #31

merged 1 commit into from
Jul 22, 2024

Conversation

nalgeon
Copy link
Owner

@nalgeon nalgeon commented Jul 22, 2024

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)

@nalgeon nalgeon merged commit 6ceaa64 into main Jul 22, 2024
1 check passed
@nalgeon nalgeon deleted the read-only-mode branch July 22, 2024 21:22
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant