kysely-mapper
Advanced tools
Comparing version 0.4.8 to 0.4.9
{ | ||
"name": "kysely-mapper", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"author": "Joseph T. Lapp <arachnojoe@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,7 +7,7 @@ # kysely-mapper | ||
This utility reduces the code required for mapping between database tables and objects, particularly when mapping across multiple queries. | ||
This utility reduces the code required for mapping between database tables and objects, particularly when mapping across multiple queries. It uses [Kysely](https://github.com/kysely-org/kysely) and works alongside Kysely. | ||
Unconfigured, the utility does no mapping and only serves as a shorthand for accessing tables using column names as fields. When configured, it provides nearly complete control over how objects map to and from individual tables. Mappings can be tailored per table and can vary in degree of ORM functionality. | ||
All queries are based on [Kysely](https://github.com/kysely-org/kysely) and give you access to the underlying query builders for further modification. The utility also supports compiling its object-mapping queries, parameterized for variation from run to run. | ||
All queries are based on Kysely and give you access to the underlying query builders for further modification. The utility also supports compiling its object-mapping queries, parameterized for variation from run to run. | ||
@@ -69,2 +69,3 @@ [Jump to the Quick Reference](https://github.com/jtlapp/kysely-mapper#quick-reference) | ||
}, | ||
countTransform: (count) => Number(count), | ||
}); | ||
@@ -71,0 +72,0 @@ ``` |
1055533
721