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

This commit is contained in:
2025-06-05 20:06:32 -06:00
parent 340bceee31
commit 71052e8d9d

View File

@@ -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),
),