ZeroIntensity / discobase

Database library using nothing but Discord. PyDis Codejam 2024.
https://discobase.zintensity.dev/
MIT License
6 stars 0 forks source link

Implementation of `clean()` method #61

Closed ZeroIntensity closed 3 months ago

ZeroIntensity commented 3 months ago

CC @enskyeing

Implementation of the clean() method in Database. Quick example:

import asyncio
import os

import discobase

async def main():
    db = discobase.Database("discobase test")
    async with db.conn(os.environ["TEST_BOT_TOKEN"]):
        await db.clean()  # Resets the server

asyncio.run(main())

Docs haven't been updated, because I'm not really sure what section would fit, :wink:.

netlify[bot] commented 3 months ago

Deploy Preview for discobase ready!

Name Link
Latest commit 20ddcd8e301c247baf64794eb771aa37021c4a38
Latest deploy log https://app.netlify.com/sites/discobase/deploys/66a4123d9bd27700088cde91
Deploy Preview https://deploy-preview-61--discobase.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.