Socket
Book a DemoInstallSign in
Socket

@kinshipjs/adapter-tests

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kinshipjs/adapter-tests

Adapter testing suite for custom adapters built for the Kinship ORM.

latest
Source
npmnpm
Version
0.2.6
Version published
Maintainers
1
Created
Source

Kinship Logo Title & Description

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

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

Keywords

mysql

FAQs

Package last updated on 08 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.