Hello, I'm a beginner on the racket. I would like to capture the insert-id value that returns in a struct called simple-result da query file that I run. The return is as follows:
(simple-result '((insert-id . 30) (affected-rows . 1)))
I would like to get the value 30 for example.
Query execution code:
(define save_pergunta
(lambda (tf_pergunta)
(define result_save_pergunta (
query conn "INSERT INTO perguntas VALUES (null, $pergunta)" tf_pergunta))
(print result_save_pergunta)
(printf "\nPergunta Cadastrada!\n")))