kysely-mapper
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "kysely-mapper", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "Joseph T. Lapp <arachnojoe@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,11 +0,15 @@ | ||
# kysely-params | ||
# kysely-mapper | ||
Flexible Kysely-based utility for mapping between tables and objects | ||
** CURRENTY UNDER DEVELOPMENT. NOT READY FOR USE. ** | ||
**CURRENTY UNDER DEVELOPMENT. NOT READY FOR USE.** | ||
## Overview | ||
This utility helps eliminate the boilerplate associated with mapping between database tables and objects. 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. | ||
This utility helps eliminate the boilerplate associated with mapping between database tables and objects. | ||
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. | ||
## Installation | ||
@@ -27,3 +31,3 @@ | ||
For the examples that follow, assume we have the following 'users' table: | ||
For the examples that follow, assume we have the following '**users**' table: | ||
@@ -145,3 +149,3 @@ - **id**: auto-incrementing integer, primary key | ||
You can also control which columns selections return, and you can specify aliases for any returned columns: | ||
You can also control the columns that selections return, and you can specify aliases for any returned columns: | ||
@@ -350,2 +354,6 @@ ```ts | ||
## Usage in Repository Classes | ||
TBD | ||
## Quick Reference | ||
@@ -352,0 +360,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1004189
367
0