Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported schema operations #116

Merged
merged 16 commits into from
Dec 26, 2021
Merged

Supported schema operations #116

merged 16 commits into from
Dec 26, 2021

Conversation

MXPOL
Copy link
Collaborator

@MXPOL MXPOL commented Dec 22, 2021

No description provided.

@MXPOL MXPOL merged commit 5664a19 into master Dec 26, 2021
const { SystemFields, validateSystemFields, parseTableData, SchemaOperations } = require('velo-external-db-commons')

const { LIST, LIST_HEADERS, CREATE, DROP, ADD_COLUMN, REMOVE_COLUMN, DESCRIBE_COLLECTION } = SchemaOperations
const schemaSupportedOperations = [LIST, LIST_HEADERS, CREATE, DROP, ADD_COLUMN, REMOVE_COLUMN, DESCRIBE_COLLECTION]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MXPOL please extract those function to schema_utils or something like that, i don't want the schema provider to expose them, they are util functions that shouldn't be here

const { CollectionDoesNotExists, FieldAlreadyExists, FieldDoesNotExist } = require('velo-external-db-commons').errors
const { DynamoDBDocument } = require ('@aws-sdk/lib-dynamodb')
const dynamoRequests = require ('./dynamo_schema_requests_utils')

const { LIST, LIST_HEADERS, CREATE, DROP, ADD_COLUMN, REMOVE_COLUMN, DESCRIBE_COLLECTION } = SchemaOperations
const schemaSupportedOperations = [LIST, LIST_HEADERS, CREATE, DROP, ADD_COLUMN, REMOVE_COLUMN, DESCRIBE_COLLECTION]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here and any other impl

@MXPOL MXPOL deleted the supported-schema-operations branch December 27, 2021 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants