Answer the question
In order to leave comments, you need to log in
Who knows ORM into several languages at once (Python, Ruby, NodeJS)?
I am developing a large data analysis project, its different parts are written in different languages (computing in python, scraping in nodejs, admin panel and interface in ruby on rails). There was a problem with code duplication, all parts work with the same base and I really don’t want to describe the same data structures for three different languages. Is there any solution that allows you to describe this once and then import it into the necessary languages?
- for example, a description of data in a yml/xml/json config and import into the required languages through the appropriate packages
- or a description of the data in some metalanguage and then conversion to the required ones
The database is not critical, now I use mongodb + mysql, but I can easily move to any other if there is a suitable solution for it. Has anyone experienced a similar situation or knows a solution? Any thoughts will be interesting.
Answer the question
In order to leave comments, you need to log in
ORM is initially SHARPENED for a specific language.
In each language, the mapping of objects to the DBMS is implemented somewhat differently.
Unless you are interested in ORMs that are close in ideology (when one is licked from the other).
Well, there are a lot of tools that are able to tear out the data structure directly from SQL and translate it into your programming language. What prevents to use SQL as "reference representation"?
I know that microservices are used in such cases. One of them will be the one who works with the base.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question