@pipedream/platform
Version:
Pipedream platform globals (typing and runtime type checking)
31 lines (30 loc) • 1.2 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const errors_1 = require("./errors");
exports.default = {
methods: {
/**
* A method that transforms the value of a prop of type `sql` so that it can
* be fed to the `executeQuery` method.
*
* @param sqlProp - The prop of type `sql`
* @returns The arguments to be passed to `executeQuery`
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
executeQueryAdapter(sqlProp) {
throw new errors_1.ConfigurationError("executeQueryAdapter not implemented");
},
/**
* A helper method to get the schema of the database. Used by other features
* (like the `sql` prop) to enrich the code editor and provide the user with
* auto-complete and fields suggestion.
*
* @returns {DbInfo} The schema of the database, which is a
* JSON-serializable object.
* @throws {ConfigurationError} If the method is not implemented.
*/
getSchema() {
throw new errors_1.ConfigurationError("getSchema not implemented");
},
},
};
;