Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Allow to pass :extra_args to mysqlstream #91

Open
thbar opened this issue Apr 23, 2012 · 0 comments
Open

Allow to pass :extra_args to mysqlstream #91

thbar opened this issue Apr 23, 2012 · 0 comments
Milestone

Comments

@thbar
Copy link
Member

thbar commented Apr 23, 2012

See #89 for the background - it's fairly common to have a default client encoding not set to UTF-8 and as such, the data will choke as not UTF-8 when using mysqlstream.

What we could do to smooth this:

  • add an :extra_args option to mysqlstream
  • if passed, this should be added to the mysql command
  • allow to write this:
# we should still support this
source :in, :type => :database, :mysqlstream => true
# but we should also allow that
source :in, :type => :database, :mysqlstream => { :extra_args => "--default-character-set=utf8" }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant