Created
July 31, 2016 21:25
-
-
Save zyriuse75/c54cea0b789a963e0d7769ab94c7b8f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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