Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 726 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 726 Bytes

Platformatic with Orama

The services exposes two routes:

  • /orama/:author - returns a list of all the posts that matches the author query param using Orama
  • /mapper/:author - returns a list of all the posts that matches the author query param using the native @platformatic/sql-mapper

Usage

$ npm install

Create a new migration file in database/migrations/001.do.sql.

CREATE TABLE quotes(
  id INTEGER PRIMARY KEY,
  author VARCHAR(255) NOT NULL,
  quote TEXT NOT NULL
)
$ npm run platformatic:migrate
$ npm run platformatic:seed
$ npm start

License

MIT