module SQLite3ExtendFunction::Functions::ConcatWs

SQLite3ExtendFunction::Functions::ConcatWs

Public Class Methods

call(sep, *args) click to toggle source

@param [String] sep @param [Array<String>] args @return [String] @raise [SQLite3::SQLException]

# File lib/sqlite3_extend_function/functions/concat_ws.rb, line 12
def call(sep, *args)
  args.compact.join(sep)
rescue ArgumentError
  raise SQLite3::SQLException, 'No function matches the given name and argument types. ' \
    'You might need to add explicit type casts.'
end