The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
Event
, but when I try and use it, I get Event is not a class, it's a module
Event
%()
%[]
and %<>
are other string separators
I need help, very beginner here. I am using Crecto, look my Repo.cr
module Repo
extend Crecto::Repo
config do |conf|
conf.adapter = Crecto::Adapters::Mysql
conf.database = "revistinha"
conf.hostname = "localhost"
conf.username = "root"
conf.password = ""
conf.port = 5432
end
end
Then when I do this, it prints "Trying to insert" and then freezes forever, don't print nothing neither print an error
c = Consumidor.new
c.nome = "Gabb"
c.sobrenome = "Esperanto"
puts "Trying to insert..."
changeset = Repo.insert(c)
puts changeset.errors
After a few minutes waiting it throws an huge exception:
https://pastebin.com/TetU7nxy