Skip to content

Commit

Permalink
move to recordsets
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Dec 19, 2023
1 parent 4b83bc7 commit 0781383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entities/macros/EntityBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class EntityBuilder {
kind: FFun({
args: [{
name: "records",
type: macro: Array<db.Record>
type: macro: db.RecordSet
}, {
name: "fieldPrefix",
type: macro: String
Expand Down Expand Up @@ -1241,7 +1241,7 @@ class EntityBuilder {
access: [APrivate],
meta: [{name: ":noCompletion", pos: Context.currentPos()}],
kind: FFun({
args: [{name: "tableName", type: macro: String}, {name: "records", type: macro: Array<db.Record>}],
args: [{name: "tableName", type: macro: String}, {name: "records", type: macro: db.RecordSet}],
ret: macro: promises.Promise<Bool>,
expr: macro {
return new promises.Promise((resolve, reject) -> {
Expand Down Expand Up @@ -1853,7 +1853,7 @@ class EntityBuilder {
return result.table.find(query);
}).then(result -> {
if (result.data != null || result.data.length != 0) {
var map:Map<String, Array<db.Record>> = [];
var map:Map<String, db.RecordSet> = [];
var mapKeys:Array<String> = [];
for (record in result.data) {
var fieldValue = Std.string(record.field($v{primaryKeyFieldName}));
Expand Down

0 comments on commit 0781383

Please sign in to comment.