API

class nextcord_ormar.Bot(command_prefix, database_url, **kwargs)

A subclass of the Nextcord Bot class that adds integration for Ormar. Refer to the Nextcord Bot docs.

__init__(command_prefix, database_url, **kwargs)

Identical to the Nextcord Bot __init__ with the addition of the positional database_url parameter.

Parameters:
async close() None

Nextcord Bot’s close function. This is used to close the database connection so make sure to call super() if you override it.

Returns:

class nextcord_ormar.OrmarManager(database_url)

Manages the database connection and helps organize tables for migration.

__init__(database_url)
Parameters:

database_url

An SQLAlchemy database URL

async start()

Start the database connection

async close()

Close the database connection