Closed mpdroog closed 9 years ago
"ACTOR type1(payments) CREATE" is a useless statement by itself. It just tells actordb where to go. Execute a select/insert/update after it like so:
"ACTOR type1(payments) CREATE; INSERT into ....;"
Or you can use thrift to generate a connector to ActorDB.
https://github.com/biokoda/actordb_thrift/blob/0.9pre9/adbt.thrift
Sorry I missed that you call Ping. Why not just ignore the error? If the purpose of ping is to check if connection to DB is still open, getting back that error means you are. The connection is still completely usable, at least form the ActorDB side.
Thnx for the advice and quick response, I'll be looking into it.
Okay ignored the error with ping, got the same error again after firing a query like:
ACTOR type1(payments) CREATE; SELECT * FROM a
So I guess the mysql/database library in Go isn't compatible.
Also did a look at Thrift, but the Go example feels very complex.
Thanks for the help but I'll be looking at other databases for solving my problem.
Hi all,
I seem to have trouble getting my Go code working with ActorDB. It returns
{error,no_actor_defined}
when requesting a connection.Go code
Crash report
I can image you guy's don't write in Go everyday so I was hoping you could hint me how I can see where it goes wrong from the actordb side of things?