Questions tagged [ORM] (308)

1
answer

Good of themselves linq2db?

Have worked with Core EF and Dapper. Now in a new project I want to use linq2db. It seemed to me, is the Golden mean between the first two. What do you think about this? Should I use it? Are there serious downsides?
palma_Hil asked April 2nd 20 at 17:31
3
answers

Algorithm or a ready solution for dynamic maps on Canvas JS?

Hello, I am writing an interactive map without the use of third-party libraries. Do you have the ready compact solution for dynamic loading of map tiles? And if not, could you explain the mechanism of work of such applications?
marina.Paucek asked April 2nd 20 at 15:31
0
answer

As using Peewee to pull records from a linked table?

Hello, anyone familiar with Laravel I very well understand. In Laravel to get the records from the linked table, it is sufficient to do so: the object $user->tweets, and thus get all tweets of a specific user. Now I've been developing in Python, I found a convenient ORM Peewee, but I do not understand how to make the rel...
edwin_Walsh6 asked April 1st 20 at 17:56
1
answer

How to rewrite a legacy raw sql query in django orm?

There is a legacy base, to convert it is not possible. Want to do REST API in django. Using inspectdb happened the following models:class Alert(models.Model): id = models.BigAutoField(primary_key=True) server_id = models.IntegerField() rule_id = models.BigIntegerField() level = models.SmallIntegerField(blank=True, null=...
freeman.Mayer asked April 1st 20 at 17:40
2
answers

Strategy storage orders?

Colleagues, let's breed holivar. Haunts me, a question. The question associated with the strategy measurements. The sooner I decide the better, and maybe useful to someone. More to the point. Entity --------------- Product Order Customer --------------- Here everything as simple as possible. But we know that after people or...
daren asked March 31st 20 at 14:30
2
answers

How is the correct selection of data from related tables of the DB when using JPA?

Good day! Please help to understand how to build the architecture of your project and work with the database. I explain the problem. Have an application written in Java using Spring, Hibernate. Suppose there is a database for the school, consisting of multiple tables linked together://users(teachers+Directors) CREATE TABLE ...
Karlee asked March 30th 20 at 00:56
1
answer

How to override the save method to change another model in Django?

Create a rating system in Django. I have 3 models - Review (feedback), Profile (profile) and Advert (ads). Model Peview contains an integer field stars and field ad. ad - foreing key in object Advert, which is attached to the opinion. Model Advert, in turn, contains the foreign key to the object Profile, the owner of the ad...
Dejuan asked March 30th 20 at 00:46
2
answers

Django ORM — how to Express the sql query?

Actually the question is how to Express this mysql expressionSELECT lvl FROM userlevel WHERE lvlxp - UserXp <= 0 means the django orm?
agustin_Abbott asked March 30th 20 at 00:08
2
answers

How does sequelize.fn?

Read the Doc, read the source code carefully googled, but could not understand the power of this function. It calls the functions written inside the DB (like created using create function in postgres) + some built-in or still allows you to write custom functions in the code that extends the behavior and not allowing to make...
rollin asked March 29th 20 at 23:25
1
answer

What you can read about the creation of the ORM?

Good day, I decided to try to write a simple ORM. I want to try to do this in Kotlin. Advise what to esteem on this subject, someone to listen, etc. In General, where to draw the old, what smart people listen to =)
julia_Jast asked March 29th 20 at 23:20