Nala Ginrut (d5696672) at 26 Feb 18:26
Fix DB-get-all-rows
Nala Ginrut (73863799) at 26 Feb 18:06
Throw error when db query failed
Nala Ginrut (0d583e05) at 12 Feb 18:03
Capture error when getting rows from DB
... and 1 more commit
sounds like a great idea !
Nala Ginrut (179c8a46) at 18 Jan 14:58
First commit
Nala Ginrut (0365546a) at 18 Jan 07:49
First commit
Nala Ginrut (a5d03b69) at 18 Jan 07:48
Initial commit
Hi @jjbigorra I hope the configurable logger should be as Artanis plugin, so folks may add their preferred logger format. This needs some tweak of the current logger, I have to add a hook.
I'll back here soon.
I was thinking to start with an API like this (pseudocode)
(define* (log message #:key (level 'INFO)
(annotations '())
(trace-id #f)
(output-port (current-output-port)))
(define (log-info message #:key (annotations '())
(trace-id #f)
(output-port (current-output-port))
(log message #:level 'INFO ........))
It could be the issue from libltdl, which means it can't find related .so file. And "file not found" is one of the error strings appears in guile-dbi/guile-dbi source directory.
Sure thing. It seems to recreate the error that Artanis displays. Starting Guile, I did the following:
scheme@(guile-user)> (use-modules (dbi dbi))
scheme@(guile-user)> (define ciccio (dbi-open "mysql" "user:pass:db:tcp:localhost:3306"))
scheme@(guile-user)> ciccio
$1 = #<guile-dbi close mysql user:pass:db:tcp:localhost:3306 (1 . file not found)>
I wasn't sure if guile-dbi required the executable of the database but I tried both with and without in a guix shell and both times had the same, above result.
I double checked that the user was valid and I was able to login to mariadb with said user and that the database existed (and the user had privileges granted to said database) and all of that was still true when I tried directly with guile-dbi.
Could you run art work --debug, and find the guile-dbi connection configure string, it should look like this:
DEBUG: ON
User wants to use Database, initializing...
connection pools are initilizing...<mysql> root::my-app:tcp:127.0.0.1:3306
Then try this string with guile-dbi directly, to see if it's the issue of guile-dbi. Here's guile-dbi manual: https://htmlpreview.github.io/?https://github.com/opencog/guile-dbi/blob/master/website/guile-dbi.html
Hey!
I am not using socketfile; I'm using tcp, like you have in your code snippet here.
Hi @tomenzgg Did you use sockfile rather than TCP connection? Say, in conf/artanis.conf
## specify the unix socket file managed by database server.
## db.proto = tcp | socketfile
db.proto = tcp
Nala Ginrut (27d2ca04) at 09 Dec 16:40
Fix model definition to import current-dbconn
Nala Ginrut (95b87749) at 06 Dec 11:30
Fix typo of sql-to-string?