commiting for magit.# be concerned about strips ...

#Dir["#{File.dirname(__FILE__)}/*.rb"].each do |f| require(f) end

require '/home/pooya/projects/Fox/sql_client.rb'
a = SqlClient.new()
a.list_databases

class Project
  def initialize(project_name , client)
    @name = project_name
    @client = client
    @client.query("CREATE DATABASE #{project_name.strip}")
  end

  def initialize_contributors()
    log("Project:initialize_contributors")
    @client.query("CREATE TABLES #{@name}.contributors(Firstname CHAR(30) , Lastname CHAR(30)")
    #contributors = gets.strip.split(',').to_a.each do |c|
    #  @client.query("INSERT INTO Contributors(Firstname,Lastname) VALUES(#{c.split(' ').size == 0 ? c : }
    #end
  end
end

client = Mysql2::Client.new(host: @host , username: @user , password: @pass)

# sd