How to fetch column value at the time of inserting into MySQL DB using sequel. Tried below query getting type error: no implicit conversion to integer.
DB[:table].import([:x, :y], [[1, 2]], [:return=>:primary_key]).
As per the docs, you should be passing opts in without the square brackets, like so:
DB[:table].import([:x, :y], [[1, 2]], :return =>: primary_key)
1, 2]], :return => :primary_key)