[racket-users] Re: Executing batch statements against a database using `db` library.

2017-05-12 Thread Alexander McLin
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

[racket-users] Executing batch statements against a database using `db` library.

2017-05-12 Thread Alexander McLin
`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

[racket-users] How racket web-server accept post request (use dispatch-rules).

2017-05-12 Thread Rosso Wu
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

Re: [racket-users] How racket web-server accept post request (use dispatch-rules).

2017-05-12 Thread Jay McCarthy
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.)

[racket-users] Re: Executing batch statements against a database using `db` library.

2017-05-12 Thread Alex Harsanyi
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

[racket-users] 2018: Call for Papers

2017-05-12 Thread Sylvia Grewe
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