# fsp.JExecutor **Repository Path**: FullStackPlayer/fsp.JExecutor ## Basic Information - **Project Name**: fsp.JExecutor - **Description**: A JBDAP executor written in TypeScript, compatible with both Nodejs and Deno. - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-24 - **Last Updated**: 2021-12-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # fsp.JExecutor A JBDAP executor written in TypeScript, compatible with both Nodejs and Deno. This is only a general wrapper, an adapter suits your own data source is required. We will provide an official MySQL adapter, take it to be an adapter example. ## Usage ~~~ts import { JExecutor, JConfig, JRequest, SecurityMode, IJAdapter, AdapterStatus } from "../../mod.ts"; // adpt should be an instance of an adapter which implements IJAdapter // here we just define an IJAdapter compatible object for demo purpose let adpt: IJAdapter = { client: {}, config: {}, status: AdapterStatus.UNSET, logs:[], async connect() {}, async process(req: JRequest, cfg: JConfig) { return req } } let exe = new JExecutor(adpt) let request = new JRequest({ commands: [ { name: 'users', type: 'list', target: 'User', fields: `id,lastName=>name` } ] }) let res = await exe.execute(request) ~~~