Creating Connectors
Build a custom connector to store schemas and data in your own backend.
Minimum requirements
Skeleton
import { Connector } from 'schemafx';
export default class MyConnector extends Connector {
async listTables(path: string[], auth?: string) {
return [];
}
async getTable(path: string[], auth?: string) {
return undefined;
}
async getData(table: any, auth?: string) {
return { type: 'inline', data: [] };
}
// Optional CRUD methods.
async addRow() {}
async updateRow() {}
async deleteRow() {}
}Next
Last updated