mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
add sqlocal connection including example
This commit is contained in:
10
packages/sqlocal/test/base.test.ts
Normal file
10
packages/sqlocal/test/base.test.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { SQLocal } from "sqlocal";
|
||||
|
||||
describe("base", () => {
|
||||
const { sql } = new SQLocal(":memory:");
|
||||
|
||||
it("works", async () => {
|
||||
expect(await sql`SELECT 1`).toEqual([{ "1": 1 }]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user