Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cotton/src/testutils.ts

SQL Database Toolkit for Deno
Latest
import * as cotton from "https://deno.land/x/cotton@v0.7.5/src/testutils.ts";

Classes

Represents a model with default table name and a custom id

Variables

MySQL connection options

Postgres connection options

SQLite connection options

Functions

Check if two dates are equal.

Create test with database client

Generate a test case for testing the QueryBuilder. This will assert the query description of the builder which will be passed to the QueryCompiler.

Generate a test case for testing QueryCompiler. This will create a new QueryCompiler and test it agaist the expected query string and values.