MCPcopy Create free account
hub / github.com/expo/examples / addItemAsync

Function addItemAsync

with-libsql/App.tsx:195–203  ·  view source on GitHub ↗
(db: SQLiteDatabase, text: string)

Source from the content-addressed store, hash-verified

193//#region Database Operations
194
195async function addItemAsync(db: SQLiteDatabase, text: string): Promise<void> {
196 if (text !== '') {
197 await db.runAsync(
198 'INSERT INTO items (done, value) VALUES (?, ?);',
199 false,
200 text
201 );
202 }
203}
204
205async function updateItemAsDoneAsync(
206 db: SQLiteDatabase,

Callers 1

MainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected