Browse Source

fix retrieval of column names -- so now most ops are working (but not all, eg. set name)

pull/137/head
Trent Larson 3 weeks ago
parent
commit
c5228ba7ec
  1. 2
      src/services/platforms/CapacitorPlatformService.ts

2
src/services/platforms/CapacitorPlatformService.ts

@ -144,7 +144,7 @@ export class CapacitorPlatformService implements PlatformService {
operation.params,
);
result = {
columns: [], // SQLite plugin doesn't provide column names
columns: Object.keys(queryResult.values?.[0] || {}),
values: (queryResult.values || []).map((row) =>
Object.values(row),
),

Loading…
Cancel
Save