Thank you Alex, your code looks comprehensive and ought cover my use case.
Appreciate your sharing!
Best,
Alexander
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
`db` library doesn't seem to provide support for executing batch statements
against a database. I'm trying to initialize and create an in-memory SQLite3
database using a SQL schema file. `query-exec` and its friends only support
executing single SQL statements.
Reading documentation isn't
Hi everyone, recently i start learn write a web api service in racket,but in
dispatch-rules part i had a problem.
; handler.rkt
#lang racket
(require
web-server/http)
(define (user req)
(response/xexpr
#:mime-type #"application/json"
"{hello: User}"))
; routers.rkt
You want to use #:method in the dispatch-clause. From the docs, "If
method is left out, it assumed to apply to requests without methods
and GET methods." (i.e. not POST methods.)
You need to execute the statements one by one and write code that reads the
statements.
I have written code to read a SQL schema definition file and create a database
from it, you can find it here:
https://github.com/alex-hhh/ActivityLog2/blob/master/rkt/dbutil.rkt
The `db-open` command
2018 : The Art, Science, and Engineering of Programming
Mon 9 - Thu 12 April 2018 Nice, France
http://2018.programming-conference.org/
In 2017, we started a new conference and journal focused on everything to
6 matches
Mail list logo