<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.</code><codeclass="sig-name descname">Alchemy</code><spanclass="sig-paren">(</span><emclass="sig-param">database_uri: str</em>, <emclass="sig-param">tables: Set</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.database.Alchemy"title="Permalink to this definition">¶</a></dt>
<dd><p>A wrapper around SQLAlchemy declarative that allows to use multiple databases at once while maintaining a single table-class for both of them.</p>
<codeclass="sig-name descname">__init__</code><spanclass="sig-paren">(</span><emclass="sig-param">database_uri: str</em>, <emclass="sig-param">tables: Set</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.database.Alchemy.__init__"title="Permalink to this definition">¶</a></dt>
<li><p><strong>database_uri</strong>– The uri of the database, as described at <aclass="reference external"href="https://docs.sqlalchemy.org/en/13/core/engines.html">https://docs.sqlalchemy.org/en/13/core/engines.html</a> .</p></li>
<li><p><strong>tables</strong>– The set of tables to be created and used in the selected database. Check the tables submodule for more details.</p></li>
<codeclass="sig-name descname">_create_tables</code><spanclass="sig-paren">(</span><emclass="sig-param">tables: Set</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.database.Alchemy._create_tables"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">session_acm</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.database.Alchemy.session_acm"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">session_cm</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.database.Alchemy.session_cm"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">royalnet.database.</code><codeclass="sig-name descname">relationshiplinkchain</code><spanclass="sig-paren">(</span><emclass="sig-param">starting_class</em>, <emclass="sig-param">ending_class</em><spanclass="sig-paren">)</span>→ Optional[tuple]<aclass="headerlink"href="#royalnet.database.relationshiplinkchain"title="Permalink to this definition">¶</a></dt>
<dd><p>The configuration to be used for the <spanclass="xref std std-ref">royalnet.database.Alchemy</span> component of <spanclass="xref std std-ref">royalnet.bots.GenericBot</span>.</p>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Royal</code><aclass="headerlink"href="#royalnet.database.tables.Royal"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">avatar</code><emclass="property"> = Column(None, LargeBinary(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Royal.avatar"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">password</code><emclass="property"> = Column(None, LargeBinary(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Royal.password"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">role</code><emclass="property"> = Column(None, String(), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.Royal.role"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">username</code><emclass="property"> = Column(None, String(), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.Royal.username"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Telegram</code><aclass="headerlink"href="#royalnet.database.tables.Telegram"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">first_name</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Telegram.first_name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">last_name</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Telegram.last_name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">mention</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ str<aclass="headerlink"href="#royalnet.database.tables.Telegram.mention"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal</code><emclass="property"> = <RelationshipProperty at 0x77b4108; no key></em><aclass="headerlink"href="#royalnet.database.tables.Telegram.royal"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal_id</code><emclass="property"> = Column(None, Integer(), ForeignKey('royals.uid'), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Telegram.royal_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">username</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Telegram.username"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Diario</code><aclass="headerlink"href="#royalnet.database.tables.Diario"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">context</code><emclass="property"> = Column(None, Text(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Diario.context"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">creator</code><emclass="property"> = <RelationshipProperty at 0x77b4348; no key></em><aclass="headerlink"href="#royalnet.database.tables.Diario.creator"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">creator_id</code><emclass="property"> = Column(None, Integer(), ForeignKey('royals.uid'), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Diario.creator_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">media_url</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Diario.media_url"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">quoted</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Diario.quoted"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">quoted_account</code><emclass="property"> = <RelationshipProperty at 0x77b45d0; no key></em><aclass="headerlink"href="#royalnet.database.tables.Diario.quoted_account"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">quoted_account_id</code><emclass="property"> = Column(None, Integer(), ForeignKey('royals.uid'), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Diario.quoted_account_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">spoiler</code><emclass="property"> = Column(None, Boolean(), table=None, default=ColumnDefault(False))</em><aclass="headerlink"href="#royalnet.database.tables.Diario.spoiler"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">text</code><emclass="property"> = Column(None, Text(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Diario.text"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">timestamp</code><emclass="property"> = Column(None, DateTime(), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.Diario.timestamp"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Alias</code><aclass="headerlink"href="#royalnet.database.tables.Alias"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal</code><emclass="property"> = <RelationshipProperty at 0x77b4300; no key></em><aclass="headerlink"href="#royalnet.database.tables.Alias.royal"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal_id</code><emclass="property"> = Column(None, Integer(), ForeignKey('royals.uid'), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Alias.royal_id"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">ActiveKvGroup</code><aclass="headerlink"href="#royalnet.database.tables.ActiveKvGroup"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">group</code><emclass="property"> = <RelationshipProperty at 0x7733f18; no key></em><aclass="headerlink"href="#royalnet.database.tables.ActiveKvGroup.group"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal</code><emclass="property"> = <RelationshipProperty at 0x77b4300; no key></em><aclass="headerlink"href="#royalnet.database.tables.ActiveKvGroup.royal"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Keyvalue</code><aclass="headerlink"href="#royalnet.database.tables.Keyvalue"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">group</code><emclass="property"> = <RelationshipProperty at 0x77b4660; no key></em><aclass="headerlink"href="#royalnet.database.tables.Keyvalue.group"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">value</code><emclass="property"> = Column(None, String(), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.Keyvalue.value"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Keygroup</code><aclass="headerlink"href="#royalnet.database.tables.Keygroup"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Discord</code><aclass="headerlink"href="#royalnet.database.tables.Discord"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">avatar_hash</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Discord.avatar_hash"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">discriminator</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Discord.discriminator"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">full_username</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.database.tables.Discord.full_username"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal</code><emclass="property"> = <RelationshipProperty at 0x77b45d0; no key></em><aclass="headerlink"href="#royalnet.database.tables.Discord.royal"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal_id</code><emclass="property"> = Column(None, Integer(), ForeignKey('royals.uid'), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Discord.royal_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">username</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Discord.username"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">WikiPage</code><aclass="headerlink"href="#royalnet.database.tables.WikiPage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">contents</code><emclass="property"> = Column(None, Text(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.WikiPage.contents"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">css</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.WikiPage.css"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">page_short_id</code><aclass="headerlink"href="#royalnet.database.tables.WikiPage.page_short_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">title</code><emclass="property"> = Column(None, String(), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.WikiPage.title"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">WikiRevision</code><aclass="headerlink"href="#royalnet.database.tables.WikiRevision"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">author</code><emclass="property"> = <RelationshipProperty at 0x77b4738; no key></em><aclass="headerlink"href="#royalnet.database.tables.WikiRevision.author"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">diff</code><emclass="property"> = Column(None, Text(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.WikiRevision.diff"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">page</code><emclass="property"> = <RelationshipProperty at 0x77b4150; no key></em><aclass="headerlink"href="#royalnet.database.tables.WikiRevision.page"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">reason</code><emclass="property"> = Column(None, Text(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.WikiRevision.reason"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">timestamp</code><emclass="property"> = Column(None, DateTime(), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.WikiRevision.timestamp"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="royalnet.database.tables.Medal">
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Medal</code><aclass="headerlink"href="#royalnet.database.tables.Medal"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="attribute">
<dtid="royalnet.database.tables.Medal.classes">
<codeclass="sig-name descname">classes</code><emclass="property"> = Column(None, String(), table=None, nullable=False, default=ColumnDefault(''))</em><aclass="headerlink"href="#royalnet.database.tables.Medal.classes"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">description</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Medal.description"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="royalnet.database.tables.Medal.icon">
<codeclass="sig-name descname">icon</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Medal.icon"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="royalnet.database.tables.Medal.mid">
<codeclass="sig-name descname">mid</code><emclass="property"> = Column(None, Integer(), table=None, primary_key=True, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.Medal.mid"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="royalnet.database.tables.Medal.name">
<codeclass="sig-name descname">name</code><emclass="property"> = Column(None, String(), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.Medal.name"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="royalnet.database.tables.Medal.score">
<codeclass="sig-name descname">score</code><emclass="property"> = Column(None, Integer(), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.Medal.score"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="royalnet.database.tables.MedalAward">
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">MedalAward</code><aclass="headerlink"href="#royalnet.database.tables.MedalAward"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">award_id</code><emclass="property"> = Column(None, Integer(), table=None, primary_key=True, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.MedalAward.award_id"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="royalnet.database.tables.MedalAward.date">
<codeclass="sig-name descname">date</code><emclass="property"> = Column(None, DateTime(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.MedalAward.date"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">medal</code><emclass="property"> = <RelationshipProperty at 0x77b4858; no key></em><aclass="headerlink"href="#royalnet.database.tables.MedalAward.medal"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal</code><emclass="property"> = <RelationshipProperty at 0x77b43d8; no key></em><aclass="headerlink"href="#royalnet.database.tables.MedalAward.royal"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">royal_id</code><emclass="property"> = Column(None, Integer(), ForeignKey('royal.uid'), table=None, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.MedalAward.royal_id"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="royalnet.database.tables.Bio">
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Bio</code><aclass="headerlink"href="#royalnet.database.tables.Bio"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="attribute">
<dtid="royalnet.database.tables.Bio.contents">
<codeclass="sig-name descname">contents</code><emclass="property"> = Column(None, Text(), table=None, nullable=False, default=ColumnDefault(''))</em><aclass="headerlink"href="#royalnet.database.tables.Bio.contents"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="royalnet.database.tables.Bio.royal">
<codeclass="sig-name descname">royal</code><emclass="property"> = <RelationshipProperty at 0x77b4300; no key></em><aclass="headerlink"href="#royalnet.database.tables.Bio.royal"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="royalnet.database.tables.Bio.royal_id">
<codeclass="sig-name descname">royal_id</code><emclass="property"> = Column(None, Integer(), ForeignKey('royals.uid'), table=None, primary_key=True, nullable=False)</em><aclass="headerlink"href="#royalnet.database.tables.Bio.royal_id"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="royalnet.database.tables.Reminder">
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.database.tables.</code><codeclass="sig-name descname">Reminder</code><aclass="headerlink"href="#royalnet.database.tables.Reminder"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">creator</code><emclass="property"> = <RelationshipProperty at 0x77b4c00; no key></em><aclass="headerlink"href="#royalnet.database.tables.Reminder.creator"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">creator_id</code><emclass="property"> = Column(None, Integer(), ForeignKey('royals.uid'), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Reminder.creator_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">datetime</code><emclass="property"> = Column(None, DateTime(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Reminder.datetime"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">interface_data</code><emclass="property"> = Column(None, LargeBinary(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Reminder.interface_data"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">interface_name</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Reminder.interface_name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">message</code><emclass="property"> = Column(None, String(), table=None)</em><aclass="headerlink"href="#royalnet.database.tables.Reminder.message"title="Permalink to this definition">¶</a></dt>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.