Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions content/failover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ wrappers:
`require 'aws_advanced_ruby_driver_wrapper'`). That single require
registers the Active Record adapters and makes the connection classes,
error classes, and other public API available for direct use.
# The wrapper itself declares every gem it requires. This warning is
# for a gem `mysql2` requires on Windows without declaring it.
- text: |
:::warning
If you are using `mysql2` on Windows with Ruby 4.0 or later, also add `fiddle` to your Gemfile:

```ruby
gem 'fiddle'
```

On Windows, `mysql2` uses `fiddle` to load `libmysql.dll` but does not
declare it as a dependency. Ruby 4.0 removed `fiddle` from the default
gems, so a bundle without it raises `LoadError` when `mysql2` is required.
:::

- title: "2. Point Active Record at your cluster"
blocks:
Expand Down
13 changes: 13 additions & 0 deletions site/docs-ruby/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ bundle install

Bundler requires the gem for you (in a plain Ruby script, add `require 'aws_advanced_ruby_driver_wrapper'`). That single require registers the Active Record adapters and makes the connection classes, error classes, and other public API available for direct use.

:::warning
If you are using `mysql2` on Windows with Ruby 4.0 or later, also add `fiddle` to your Gemfile:

```ruby
gem 'fiddle'
```

On Windows, `mysql2` uses `fiddle` to load `libmysql.dll` but does not
declare it as a dependency. Ruby 4.0 removed `fiddle` from the default
gems, so a bundle without it raises `LoadError` when `mysql2` is required.
:::


### 2. Point Active Record at your cluster

The wrapper registers two adapters, `aws_postgresql` and `aws_mysql2`, which are drop-in replacements for `postgresql` and `mysql2`. Change the adapter name and point the host at your cluster endpoint:
Expand Down
Loading