You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="https://github.com/ospfranco/react-native-quick-sqlite/blob/main/example/patches/typeorm%2B0.2.31.patch">Copy typeORM patch-package from example dir</a>
8
-
npm i react-native-quick-sqlite typeorm
9
+
yarn add react-native-quick-sqlite typeorm
9
10
npx pod-install
10
11
<ahref="https://dev.to/vinipachecov/setup-typeorm-with-react-native-50c4">Enable decorators and configure babel</a>
// Import as early as possible, auto-installs bindings.
114
+
// Import as early as possible, auto-installs bindings.
108
115
// Thanks to @mrousavy for this installation method, see one example: https://github.com/mrousavy/react-native-mmkv/blob/75b425db530e26cf10c7054308583d03ff01851f/src/createMMKV.ts#L56
109
116
import'react-native-quick-sqlite';
110
117
@@ -147,7 +154,10 @@ storage datatypes, like booleans or datetimes. When fetching data directly from
147
154
to identify the table declared types:
148
155
149
156
```typescript
150
-
let result =sqlite.executeSql('myDatabase', 'SELECT int_column_1, bol_column_2 FROM sometable');
157
+
let result =sqlite.executeSql(
158
+
'myDatabase',
159
+
'SELECT int_column_1, bol_column_2 FROM sometable'
160
+
);
151
161
if (!result.status) {
152
162
// result.status undefined or 0 === sucess
153
163
for (let i =0; i<result.metadata.length; i++) {
@@ -159,6 +169,7 @@ if (!result.status) {
159
169
}
160
170
}
161
171
```
172
+
162
173
Batch execution allows transactional execution of a set of commands
0 commit comments