Huge News!Announcing our $40M Series B led by Abstract Ventures.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.0 to 0.4.1

2

package.json
{
"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 @@

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