json-api icon indicating copy to clipboard operation
json-api copied to clipboard

MysqlAdapter

Open victorgp89 opened this issue 6 years ago • 4 comments

It's posible an integration with mysql stack?

victorgp89 avatar Oct 02 '18 11:10 victorgp89

There isn't an adapter off-hand, but @carlbennettnz has been working on a Postgres adapter, which could probably be used with MySQL either directly or with very limited modifications. I believe that's here: https://github.com/carlbennettnz/json-api-knex-adapter If you need help modifying it for your purposes, I'm happy to answer questions, although the MongooseAdapter hopefully provides a pretty good example of the required methods and what each one does.

ethanresnick avatar Oct 02 '18 16:10 ethanresnick

Have you a version of this api without typescript?

victorgp89 avatar Oct 03 '18 07:10 victorgp89

@victorgp89 No, but you can easily compile the Typescript (e.g., by pasting it here), tweak the output a bit, and then you'll have idiomatic JS without too much work.

ethanresnick avatar Oct 03 '18 13:10 ethanresnick

Piggybacking on this, have you thought of integration with something like https://github.com/typeorm/typeorm ? Perhaps their datamapper approach?

ghost avatar Mar 21 '19 02:03 ghost