New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kysely-mapper

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kysely-mapper - npm Package Compare versions

Comparing version 0.4.11 to 0.4.12

2

package.json
{
"name": "kysely-mapper",
"version": "0.4.11",
"version": "0.4.12",
"author": "Joseph T. Lapp <arachnojoe@gmail.com>",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -100,2 +100,8 @@ # kysely-mapper

To help you understand how this utility can simplify object mapping with Kysely, I've written three equivalent files implementing a user repository. I tested them in another application of mine before copying them here. You'll want to right-click (or control-click) these links to open them in separate tabs or windows for comparison (GitHub links can't do this automatically):
- [UserRepo written in pure Kysely](https://github.com/jtlapp/kysely-mapper/tree/main/comparison/mapperless-UserRepo-embedded-transforms.ts)
- [UserRepo written in pure Kysely, delegating mapping to shareable functions](https://github.com/jtlapp/kysely-mapper/tree/main/comparison/mapperless-UserRepo-calling-transforms.ts)
- [UserRepo written using the present utility](https://github.com/jtlapp/kysely-mapper/tree/main/comparison/UserRepo-using-mapper.ts)
The following sections explain everything in detail.

@@ -236,3 +242,3 @@

The query methods don't provide much (if any) value over writing pure Kysely. The real value of this utility is its ability to centrally define how objects are mapped to and from database tables. The query methods then perform these mappings automatically.
The query methods provide little value over writing pure Kysely, as they only improve readability for a few common queries. The main value of this utility is its ability to centrally define how objects are mapped to and from database tables. The query methods then perform these mappings automatically.

@@ -239,0 +245,0 @@ Each mapping is implemented by a custom 'transform' function. The following transform functions are available for customization:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc