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

Function addItemAsync

with-sqlite/App.tsx:139–147  ·  view source on GitHub ↗
(db: SQLiteDatabase, text: string)

Source from the content-addressed store, hash-verified

137//#region Database Operations
138
139async function addItemAsync(db: SQLiteDatabase, text: string): Promise<void> {
140 if (text !== '') {
141 await db.runAsync(
142 'INSERT INTO items (done, value) VALUES (?, ?);',
143 false,
144 text
145 );
146 }
147}
148
149async function updateItemAsDoneAsync(
150 db: SQLiteDatabase,

Callers 1

MainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected