kysely-mapper
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "kysely-mapper", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"author": "Joseph T. Lapp <arachnojoe@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,3 +7,3 @@ # kysely-mapper | ||
This utility helps eliminate the boilerplate associated with mapping between database tables and objects. | ||
This utility helps eliminate the boilerplate associated with mapping between database tables and objects across multiple queries. | ||
@@ -16,2 +16,4 @@ 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. | ||
[Jump to the Query Methods Quick Reference](https://github.com/jtlapp/kysely-mapper#query-methods) | ||
[Open the API Reference](https://jtlapp.github.io/kysely-mapper/) | ||
@@ -619,2 +621,4 @@ | ||
### TableMapper Methods | ||
`TableMapper` has the following constructor and methods: | ||
@@ -634,2 +638,4 @@ | ||
### TableMapper Settings | ||
The `TableMapper` constructor takes a settings object, all of whose properties are optional: | ||
@@ -645,2 +651,4 @@ | ||
### TableMapper Transforms | ||
The `tableMapper.withTransforms` method takes a transforms object, all of whose properties are optional: | ||
@@ -658,2 +666,4 @@ | ||
### Query Filters | ||
The argument to `update()`, `select()`, and `delete()` is an optional query filter. The following query filters are available: | ||
@@ -672,2 +682,4 @@ | ||
### Query Methods | ||
The queries that `TableFilter` methods return all have similar methods, as this chart summarizes: | ||
@@ -688,2 +700,4 @@ | ||
### Compiling Query Methods | ||
`tableMapper.parameterize()` and `query.compile()` both return compiling queries, which compile on their first execution. These queries have similar methods, as shown in this chart: | ||
@@ -690,0 +704,0 @@ |
1031512
708