mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-03 21:51:01 -05:00
601eb019a2
The data extension adds convenient access to the database and kvstore
via it's 'db' and 'kv' exports.
Example usage:
const { db, kv } = extensions.import('data');
await kv.set('some-key', 'some-value');
await db.write('INSERT INTO something (a, b) VALUES (1, 2)');