Skip to content

Commit bf6d4e7

Browse files
authored
New schema operations and implemented them in tests (#238)
* feat: new schema operation * test: skip unsupported tests * feat: new schema operation to DynamoDB * feat: new schema operation to BigQuery
1 parent 193ff30 commit bf6d4e7

File tree

5 files changed

+113
-127
lines changed

5 files changed

+113
-127
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
const { SchemaOperations } = require('velo-external-db-commons')
1+
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, FindWithSort, Aggregate, BulkDelete, Truncate, StartWithCaseSensitive, Projection } = require('velo-external-db-commons').SchemaOperations
22

3-
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, FindWithSort, Aggregate, BulkDelete, Truncate } = SchemaOperations
4-
5-
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, FindWithSort, Aggregate, BulkDelete, Truncate ]
3+
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, FindWithSort, Aggregate, BulkDelete, Truncate, StartWithCaseSensitive, Projection ]
64

75
module.exports = { supportedOperations }
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
const { SchemaOperations } = require('velo-external-db-commons')
1+
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately, Projection, StartWithCaseSensitive } = require('velo-external-db-commons').SchemaOperations
22

3-
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately } = SchemaOperations
4-
5-
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately ]
3+
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately, Projection, StartWithCaseSensitive ]
64

75
module.exports = { supportedOperations }
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
const { SchemaOperations } = require('velo-external-db-commons')
1+
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately, StartWithCaseSensitive } = require('velo-external-db-commons').SchemaOperations
22

3-
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately } = SchemaOperations
4-
5-
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately ]
3+
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately, StartWithCaseSensitive ]
64

75
module.exports = { supportedOperations }

packages/velo-external-db-commons/lib/schema_commons.js

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const SchemaOperations = Object.freeze({
3838
Truncate: 'truncate',
3939
UpdateImmediately: 'updateImmediately',
4040
DeleteImmediately: 'deleteImmediately',
41+
StartWithCaseSensitive: 'startWithCaseSensitive',
42+
StartWithCaseInsensitive: 'startWithCaseInsensitive',
43+
Projection: 'projection',
4144
})
4245

4346
const AllSchemaOperations = Object.values(SchemaOperations)

0 commit comments

Comments
 (0)