Skip to content

Releases: php-coder/query2app

0.0.3

24 Apr 04:56
Compare
Choose a tag to compare

🚀 Features added

  • add support for a generation of Golang+Chi+MySQL applications (#9)
  • add support for a generation of Python+FastAPI+PostgreSQL applications (#16)
  • add support for a generation of TypeScript+Express+MySQL applications (#35)
  • generate Dockerfile for running a service (#42)
  • add support for using query parameters (:q.name) (#23)
  • add support for arguments of boolean type (#49)
  • allow to include user defined routes (by creating *_routes.$ext files) (#27)
  • unify behavior for handling internal server errors (#48)
  • preserve newlines in SQL queries (#26)
  • allow comments for SQL queries in endpoints.yaml (#22); contributed by @kirsanium
  • add --dest-dir option to specify a destination directory of generated files (#24)
  • (python only) add support to aggregate multiple queries into a single response (#17)

📄 Other Changes

  • rewrite integration tests to use hurl (#40)
  • run integration tests on CI (#13)
  • setup dependabot to monitor updates of GitHub Actions (#38)

0.0.2

26 Jul 19:10
Compare
Choose a tag to compare

🚀 Features added

  • GET responds with 404 error when database returned empty result
  • add get_list verb to support GET with a list of objects
  • add support for DELETE requests
  • add support for POST requests
  • add support for PUT requests
  • add support for parameter prefixes in order to be able to explicitly bind to a desired origin
  • generate endpoints in a separate file (routes.js)
  • route parameters now can be passed as named parameters to SQL queries

🐛 Bugs fixed

  • add a missing comma to fix syntax error
  • correctly join a multi-line query when the 2nd line doesn't start with a leading space
  • don't pass the same parameters many times when they are used more than once in a query

⚠️ BREAKING CHANGES

  • GET's response has been changed from a value to an object: 10 becomes {"counter": 10}

0.0.1

12 Jul 16:47
Compare
Choose a tag to compare
  • initial draft
  • add support for a generation of simple NodeJS+Express+MySQL applications
  • only GET mapping is supported
  • only SELECT queries that returns a single value named counter is supported