I have an existing PostgreSQL database with a large number of columns with data types such as "numeric (27.10)" or "numeric (17.2)". In the Sails models that I set up for each table, I list the type of each attribute, both integer and float. However, when Sails outputs JSON for these tables, the data is presented as strings.
I can always run something like parseInt () on the client side, but is there a better way to fix this by reconfiguring the sails?
Is there a better way to fix this by reconfiguring the sails?
. , Postgres 131 072 - waayyyy ( , , ) . , Waterline , , float integer ( ?). , , userland.
Source: https://habr.com/ru/post/1609913/More articles:Multiple Spring-boot applications running on the same Tomcat - spring-bootнеправильная кнопка textColor и drawablePadding на pre-Lollipop с использованием Appcompat - androidSyntaxError: missing] after the list of elements [object Object] - javascriptYou must enter the service parameter in both the child and the parent service or create a method to return from the parent service - oopWhat is the difference between cross-platform application development and hybrid application development? - androidpreparing an online test in php using javascript - javascriptHow to use PostgreSql hstore type with Fluent NHibarnate in C # - c #Symfony built-in asset with recycling - javascriptAndroid Espresso соответствует BitmapDrawables с различным оттенком - androidIs there any special rule for using foreach and while loop (using the each () function) to iterate over an array in php? - phpAll Articles