You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Write a wiki page describing what's needed to integrate a DB connector into Falcon #266
The following is instructions from @n-riesco on issue #261
backend/persistent/datastores/Datastores.js
//The following is the file that should connect to and query the interface
backend/persistent/datastores/NewConnection.js
app/constants/constants.js
app/images
app/actions/sessions.js
app/components/Settings/Tabs/Tab.react.js
app/components/Settings/Settings.react.js
//Unit testing for the new connection interface
test/backend/datastores.newconnection.spec.js
Backend Connection file
functionquery(queryObject,connection);functionconnect(connection);functionschemas(connection);functiontables(connection);//Question are these required?functionfiles(connection);functionstorage(connection);
Questions
For the backend connection file does this look ok? If it does not need the files or storage functions should they be stubbed out or just not defined?
How should this be document? I know this should be added to the Wiki; however, I think that a developer would need to be able to directly commit into the project instead of a Pull Request? Could we put the instructions in a NEW_CONNECTION.md file that can be checked in and review?
For the backend connection file does this look ok? If it does not need the files or storage functions should they be stubbed out or just not defined?
SQL connectors must implement: connect, query, tables and schemas.
Special connectors (like S3, Apache Drill and Elasticsearch) have their own interfaces (files, storage, listS3files) and require more changes than those I've described above. In the long term, we'll have to think about handling these special cases in a more general way.
How should this be document? I know this should be added to the Wiki; however, I think that a developer would need to be able to directly commit into the project instead of a Pull Request? Could we put the instructions in a NEW_CONNECTION.md file that can be checked in and review?
OK, let's go with NEW_CONNECTION.md. If maintaining this file becomes a burden, we will re-think how distribute to this documentation.
Please, if you create this file, could you add a warning advising the connector API is likely to change? (the connector API isn't mature enough for us to make any promises of future compatibility).
Activity
n-riesco commentedon Nov 28, 2017
See #186 (comment)
shannonlal commentedon Dec 18, 2017
The following is instructions from @n-riesco on issue #261
//The following is the file that should connect to and query the interface
//Unit testing for the new connection interface
Backend Connection file
Questions
For the backend connection file does this look ok? If it does not need the files or storage functions should they be stubbed out or just not defined?
How should this be document? I know this should be added to the Wiki; however, I think that a developer would need to be able to directly commit into the project instead of a Pull Request? Could we put the instructions in a NEW_CONNECTION.md file that can be checked in and review?
n-riesco commentedon Dec 18, 2017
SQL connectors must implement:
connect,query,tablesandschemas.Special connectors (like S3, Apache Drill and Elasticsearch) have their own interfaces (
files,storage,listS3files) and require more changes than those I've described above. In the long term, we'll have to think about handling these special cases in a more general way.OK, let's go with
NEW_CONNECTION.md. If maintaining this file becomes a burden, we will re-think how distribute to this documentation.Please, if you create this file, could you add a warning advising the connector API is likely to change? (the connector API isn't mature enough for us to make any promises of future compatibility).
chriddyp commentedon Dec 18, 2017
Can we add or link this to the standard
CONTRIBUTING.mdfile? https://github.com/plotly/falcon-sql-client/blob/master/CONTRIBUTING.mdn-riesco commentedon Jan 19, 2018
Closed via #331