Skip to content

Commit

Permalink
feat(knex): Wings KnexJS adapter (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl authored Oct 18, 2023
1 parent 37cb832 commit b991db0
Show file tree
Hide file tree
Showing 13 changed files with 1,793 additions and 15 deletions.
2 changes: 1 addition & 1 deletion generators/adapter/index.tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ${uppername}Adapter<
async create(data: Data[], params?: Params): Promise<Result[]>
async create(data: Data, params?: Params): Promise<Result>
async create(data: Data | Data[], params?: Params): Promise<Result[]> | Promise<Result> {
async create(data: Data | Data[], params?: Params): Promise<Result[] | Result> {
if (Array.isArray(data)) {
return Promise.all(data.map((current) => this.create(current, params)))
}
Expand Down
1 change: 1 addition & 0 deletions generators/adapter/test.tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { adapterTests, Person } from '@wingshq/adapter-tests'
import { ${uppername}Adapter } from '../src'
const testSuite = adapterTests([
'.id',
'.options',
'.get',
'.get + $select',
Expand Down
Loading

0 comments on commit b991db0

Please sign in to comment.