![Kinship Logo Title & Description](https://raw.githubusercontent.com/kinshipjs/branding/main/kinship-logo-with-description.png)
KinshipJS
Adapter Tests
Testing suite for testing a custom adapter with Kinship
.
Custom Adapter Development
Kinship is a database agnostic ORM thanks to the adapter support built in with it. While there are many adapters available, this suite guides you on how to build your own adapter as well as testing it so it is ready to be packaged and deployed.
Get Started
Install the necessary libraries
npm i @kinshipjs/core
npm i -D @kinshipjs/adapter-tests
Set up your database so it appears as the following:
![image](https://github.com/kinshipjs/adapter-tests/assets/74215332/7e832d1f-34c0-4ced-9276-f00b9afc1ad2)
NOTE: Avoid adding any constraints, as truncations of the tables occur, and if the SQL engine used prevents truncation for constraints, then the testAdapter
function will never pass.
Serializing
Executing
Testing your Custom Adapter