view asyncio_threads/database/main.py @ 64:a30944e5719e

Added vibe coded markdown to html script since it is useful for me. Updated Dowa so that it can be compiled without dirnet for windows.
author June Park <parkjune1995@gmail.com>
date Tue, 23 Dec 2025 15:18:46 -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]