Mercurial
view asyncio_threads/database/main.py @ 190:a2725419f988 hg-web
Updated so that bun builds will with already existing js files.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 24 Jan 2026 21:06:42 -0800 |
| parents | 46daba6e3cf4 |
| children |
line wrap: on
line source
class Database: def __init__(self): self.db = {} self.state = 'idle' def set(self, key, value): self.db[key] = value def get(self, key): return self.db[key] def unset(self, key): del self.db[key]