@naturalcycles/db-lib
Advanced tools
Comparing version 9.23.0 to 9.23.1
@@ -9,3 +9,3 @@ "use strict"; | ||
const testIds = testItems.map(e => e.id); | ||
const testEntries = testItems.map(e => [e.id, e]); | ||
const testEntries = testItems.map(e => [e.id, Buffer.from(`${e.id}value`)]); | ||
function runCommonKeyValueDaoTest(db) { | ||
@@ -12,0 +12,0 @@ const dao = new commonKeyValueDao_1.CommonKeyValueDao({ |
@@ -48,3 +48,3 @@ { | ||
}, | ||
"version": "9.23.0", | ||
"version": "9.23.1", | ||
"description": "Lowest Common Denominator API to supported Databases", | ||
@@ -51,0 +51,0 @@ "keywords": [ |
@@ -1,12 +0,12 @@ | ||
import { _sortBy, KeyValueTuple } from '@naturalcycles/js-lib' | ||
import { _sortBy } from '@naturalcycles/js-lib' | ||
import { CommonKeyValueDao } from '../kv/commonKeyValueDao' | ||
import { CommonKeyValueDB } from '../kv/commonKeyValueDB' | ||
import { createTestItemsBM, TEST_TABLE, TestItemBM } from './test.model' | ||
import { CommonKeyValueDB, KeyValueDBTuple } from '../kv/commonKeyValueDB' | ||
import { createTestItemsBM, TEST_TABLE } from './test.model' | ||
const testItems = createTestItemsBM(4) | ||
const testIds = testItems.map(e => e.id) | ||
const testEntries: KeyValueTuple<string, TestItemBM>[] = testItems.map(e => [e.id, e]) | ||
const testEntries: KeyValueDBTuple[] = testItems.map(e => [e.id, Buffer.from(`${e.id}value`)]) | ||
export function runCommonKeyValueDaoTest(db: CommonKeyValueDB): void { | ||
const dao = new CommonKeyValueDao<string, TestItemBM>({ | ||
const dao = new CommonKeyValueDao({ | ||
db, | ||
@@ -13,0 +13,0 @@ table: TEST_TABLE, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
432045