Skip to content

Commit

Permalink
Feat/database data improvement (#534)
Browse files Browse the repository at this point in the history
* feat: add doc store

* feat: support readonly client

* fix: fix the comment

* feat: add database counter

* feat: update the typescript sdk

* fix: fix test case

* fix: fix the test case

* feat: fix the project bug

* test: add more query test

* fix: fix query test case

* fix: fix test case

* fix: fix sdk compile error
  • Loading branch information
imotai committed Jul 1, 2023
1 parent 5df94d2 commit 1c8bce3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/src/store/database_v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export async function createCollection(
const col: Collection = {
name,
db,
indexFields,
indexFields: indexFields ? indexFields : [],
internal: undefined,
state: undefined,
}
Expand Down
3 changes: 2 additions & 1 deletion sdk/tests/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ describe('test db3.js document_v2 module', () => {
const collection = await prepareTheDataset(client)
const queryStr = '/* | count '
const resultSet = await queryDoc(collection, queryStr)
expect("1").toBe(resultSet.count)
expect('1').toBe(resultSet.count)

})

test('test query with projection', async () => {
Expand Down

0 comments on commit 1c8bce3

Please sign in to comment.