-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Issue with HybridNitroSQLite.executeAsync metadata
Environment
- react-native-nitro-sqlite: ^9.1.10
- React Native: 0.79.5
- React: 19.0.0
- Platform: iOS and Android
- Device: iPhone and Android emulator
Issue Description
When using HybridNitroSQLite.executeAsync() directly, the metadata in the result only contains information about the first column, regardless of how many columns are in the query.
For example, when executing:
const result = await HybridNitroSQLite.executeAsync(
'persistent.db',
'SELECT environment, region, isRegionChecked, showWelcomeMessage FROM AppSettings',
[]
);# Issue with HybridNitroSQLite.executeAsync metadata
## Environment
- react-native-nitro-sqlite: ^9.1.10
- React Native: 0.79.5
- React: 19.0.0
## Issue Description
When using `HybridNitroSQLite.executeAsync()` directly, the metadata only contains the first column:
```typescript
const result = await HybridNitroSQLite.executeAsync(
'persistent.db',
'SELECT environment, region, isRegionChecked, showWelcomeMessage FROM AppSettings',
[]
);The metadata looks like:
{
"": {
index: 0,
name: "environment",
type: 0
}
}
Expected: Metadata should include all columns in the query result.
Question
Is this a known limitation? How can I get complete column metadata when using the direct executeAsync() method?
Why db.executeAsync does not return metaData ?
console.log(result.metadata);
Metadata
Metadata
Assignees
Labels
No labels