Skip to content

Instantly share code, notes, and snippets.

@zyriuse75
Created July 31, 2016 21:25
Show Gist options
  • Save zyriuse75/c54cea0b789a963e0d7769ab94c7b8f2 to your computer and use it in GitHub Desktop.
Save zyriuse75/c54cea0b789a963e0d7769ab94c7b8f2 to your computer and use it in GitHub Desktop.
def mysql_select(params)
'select #{params} from User'
end
def mysql_connection(conf)
@connexion = Mysql2::Client.new(:host => conf['host'], :username => conf['user'], :password => conf['password'], :database=> conf['base'], :port => conf['port'])
if @connexion
if(defined?(mysql_select).nil?
@connexion.query mysql_select
end
end
end
syntax error, unexpected keyword_end, expecting ')'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment