Skip to content

Commit

Permalink
New schema operations and implemented them in tests (#238)
Browse files Browse the repository at this point in the history
* feat: new schema operation

* test: skip unsupported tests

* feat: new schema operation to DynamoDB

* feat: new schema operation to BigQuery
  • Loading branch information
MXPOL authored Mar 28, 2022
1 parent 193ff30 commit bf6d4e7
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 127 deletions.
6 changes: 2 additions & 4 deletions packages/external-db-bigquery/lib/supported_operations.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const { SchemaOperations } = require('velo-external-db-commons')
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, FindWithSort, Aggregate, BulkDelete, Truncate, StartWithCaseSensitive, Projection } = require('velo-external-db-commons').SchemaOperations

const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, FindWithSort, Aggregate, BulkDelete, Truncate } = SchemaOperations

const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, FindWithSort, Aggregate, BulkDelete, Truncate ]
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, FindWithSort, Aggregate, BulkDelete, Truncate, StartWithCaseSensitive, Projection ]

module.exports = { supportedOperations }
6 changes: 2 additions & 4 deletions packages/external-db-dynamodb/lib/supported_operations.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const { SchemaOperations } = require('velo-external-db-commons')
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately, Projection, StartWithCaseSensitive } = require('velo-external-db-commons').SchemaOperations

const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately } = SchemaOperations

const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately ]
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately, Projection, StartWithCaseSensitive ]

module.exports = { supportedOperations }
6 changes: 2 additions & 4 deletions packages/external-db-firestore/lib/supported_operations.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const { SchemaOperations } = require('velo-external-db-commons')
const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately, StartWithCaseSensitive } = require('velo-external-db-commons').SchemaOperations

const { List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately } = SchemaOperations

const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately ]
const supportedOperations = [ List, ListHeaders, Create, Drop, AddColumn, RemoveColumn, Describe, BulkDelete, Truncate, DeleteImmediately, UpdateImmediately, StartWithCaseSensitive ]

module.exports = { supportedOperations }
3 changes: 3 additions & 0 deletions packages/velo-external-db-commons/lib/schema_commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const SchemaOperations = Object.freeze({
Truncate: 'truncate',
UpdateImmediately: 'updateImmediately',
DeleteImmediately: 'deleteImmediately',
StartWithCaseSensitive: 'startWithCaseSensitive',
StartWithCaseInsensitive: 'startWithCaseInsensitive',
Projection: 'projection',
})

const AllSchemaOperations = Object.values(SchemaOperations)
Expand Down
Loading

0 comments on commit bf6d4e7

Please sign in to comment.