Add new Dataset ORM tutorial page covering CRUD operations, query operators, schema evolution, and JSON field handling. Update navigation.yaml to include the new tutorial in the tutorials section. Enhance markdown module documentation with GitHub Flavored Markdown support details including tables, task lists, and language identifier attributes for syntax highlighting. Update tutorial index page and pagination links to reflect the new tutorial order. Refactor dataset.wren module source to introduce Sql and QueryBuilder classes with soft-delete support and identifier validation.
25 lines
668 B
JavaScript
Vendored
25 lines
668 B
JavaScript
Vendored
// retoor <retoor@molodetz.nl>
|
|
|
|
import "web" for Request
|
|
|
|
var body = "------FormBoundary\r\n" +
|
|
"Content-Disposition: form-data; name=\"username\"\r\n" +
|
|
"\r\n" +
|
|
"john\r\n" +
|
|
"------FormBoundary\r\n" +
|
|
"Content-Disposition: form-data; name=\"email\"\r\n" +
|
|
"\r\n" +
|
|
"john@example.com\r\n" +
|
|
"------FormBoundary--\r\n"
|
|
|
|
var headers = {
|
|
"Content-Type": "multipart/form-data; boundary=----FormBoundary"
|
|
}
|
|
|
|
var request = Request.new_("POST", "/submit", {}, headers, body, {}, null)
|
|
var form = request.form
|
|
|
|
System.print(form["username"]) // expect: john
|
|
System.print(form["email"]) // expect: john@example.com
|
|
System.print(form["file"]) // expect: null
|