{ "db": "PostgreSQL", "008c913f7382dcae152cd5e31ceb2c077f1596cabc77bbfc2d78692071ece694": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "nick", "ordinal": 2, "type_info": "Text" }, { "name": "joined_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "username", "ordinal": 4, "type_info": "Text" }, { "name": "discriminator", "ordinal": 5, "type_info": "Int2" }, { "name": "avatar", "ordinal": 6, "type_info": "Text" }, { "name": "banner", "ordinal": 7, "type_info": "Text" }, { "name": "bio", "ordinal": 8, "type_info": "Text" }, { "name": "flags", "ordinal": 9, "type_info": "Int4" } ], "nullable": [ false, false, true, false, false, false, true, true, true, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT\n m.id,\n m.guild_id,\n m.nick AS nick,\n m.joined_at AS joined_at,\n u.username AS username,\n u.discriminator AS discriminator,\n u.avatar AS avatar,\n u.banner AS banner,\n u.bio AS bio,\n u.flags AS flags\n FROM\n members AS m\n INNER JOIN\n users AS u ON u.id = m.id\n WHERE guild_id = $1" }, "0134a963f2e04f3ec2febcd0bf47242dc180aa41deb347319394bafbde879354": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "revision_id", "ordinal": 1, "type_info": "Int8" }, { "name": "channel_id", "ordinal": 2, "type_info": "Int8" }, { "name": "author_id", "ordinal": 3, "type_info": "Int8" }, { "name": "type", "ordinal": 4, "type_info": "Text" }, { "name": "content", "ordinal": 5, "type_info": "Text" }, { "name": "embeds", "ordinal": 6, "type_info": "Jsonb" }, { "name": "flags", "ordinal": 7, "type_info": "Int4" }, { "name": "stars", "ordinal": 8, "type_info": "Int4" }, { "name": "metadata_user_id", "ordinal": 9, "type_info": "Int8" }, { "name": "metadata_pinned_message_id", "ordinal": 10, "type_info": "Int8" }, { "name": "metadata_pinned_by", "ordinal": 11, "type_info": "Int8" }, { "name": "embeds_ser: sqlx::types::Json>", "ordinal": 12, "type_info": "Jsonb" } ], "nullable": [ false, false, false, true, false, true, false, false, false, true, true, true, false ], "parameters": { "Left": [ "Int8", "Int8", "Int8", "Int8", "Int8" ] } }, "query": "SELECT\n messages.*,\n embeds AS \"embeds_ser: sqlx::types::Json>\"\n FROM\n messages\n WHERE\n channel_id = $1\n AND\n revision_id = 0\n AND\n ($2::BIGINT IS NULL OR id < $2)\n AND\n ($3::BIGINT IS NULL OR id > $3)\n AND\n ($4::BIGINT IS NULL OR author_id = $4)\n ORDER BY id ASC LIMIT $5" }, "08352cdccaa069d3bd25e783dd19b6e290dc2399f1f826e687a1422fdfed4c8e": { "describe": { "columns": [ { "name": "position!", "ordinal": 0, "type_info": "Int4" } ], "nullable": [ null ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT\n COALESCE(MAX(position) + 1, 0) AS \"position!\"\n FROM\n channels\n WHERE\n guild_id = $1\n AND\n (parent_id = $2 OR parent_id IS NULL AND $2 IS NULL)\n AND type = 'category'" }, "0853c25e61ce8aa02de29a7ee0a93ea125a61c216ba9141b849ca7f9ca958420": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "name", "ordinal": 2, "type_info": "Text" }, { "name": "color", "ordinal": 3, "type_info": "Int4" }, { "name": "position", "ordinal": 4, "type_info": "Int2" }, { "name": "gradient", "ordinal": 5, "type_info": "Bool" }, { "name": "allowed_permissions", "ordinal": 6, "type_info": "Int8" }, { "name": "denied_permissions", "ordinal": 7, "type_info": "Int8" }, { "name": "flags", "ordinal": 8, "type_info": "Int4" } ], "nullable": [ false, false, false, true, false, false, false, false, false ], "parameters": { "Left": [ "Int8", "Int8", "Int8" ] } }, "query": "SELECT\n *\n FROM\n roles\n WHERE\n guild_id = $1\n AND (\n id = $3\n OR id IN (SELECT role_id FROM role_data WHERE guild_id = $1 AND user_id = $2)\n )\n ORDER BY position ASC\n " }, "0879cd2d80bc104b7ffaddbbe03f35ca1edd5b9f25834e8384c99b73951208b2": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text", "Text", "Text", "Int4", "Int8" ] } }, "query": "UPDATE\n guilds\n SET\n name = $1, description = $2, icon = $3, banner = $4, flags = $5\n WHERE\n id = $6\n " }, "0ab41e15cb53d5b92c5c32f871188e500679b9301249f5cdebff0b11b40c84f1": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text" ] } }, "query": "DELETE FROM invites WHERE code = $1" }, "0b72902bc8ec599bc847b3671444f3f19f59bdcc47e22697d73196df434c9aca": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8" ] } }, "query": "DELETE FROM channels WHERE id = $1" }, "0c9f645069caa860ec011099ea9a17dc29398d44d92ad75fcdaa2b445b8cd5d0": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "revision_id", "ordinal": 1, "type_info": "Int8" }, { "name": "channel_id", "ordinal": 2, "type_info": "Int8" }, { "name": "author_id", "ordinal": 3, "type_info": "Int8" }, { "name": "type", "ordinal": 4, "type_info": "Text" }, { "name": "content", "ordinal": 5, "type_info": "Text" }, { "name": "embeds", "ordinal": 6, "type_info": "Jsonb" }, { "name": "flags", "ordinal": 7, "type_info": "Int4" }, { "name": "stars", "ordinal": 8, "type_info": "Int4" }, { "name": "metadata_user_id", "ordinal": 9, "type_info": "Int8" }, { "name": "metadata_pinned_message_id", "ordinal": 10, "type_info": "Int8" }, { "name": "metadata_pinned_by", "ordinal": 11, "type_info": "Int8" }, { "name": "embeds_ser: sqlx::types::Json>", "ordinal": 12, "type_info": "Jsonb" } ], "nullable": [ false, false, false, true, false, true, false, false, false, true, true, true, false ], "parameters": { "Left": [ "Int8", "Int8", "Int8" ] } }, "query": "\n UPDATE messages SET revision_id = $1\n WHERE id = $2 AND channel_id = $3 AND revision_id = 0\n RETURNING *, embeds AS \"embeds_ser: sqlx::types::Json>\"\n " }, "0cb2f6d718186651a08820321b47dbdcf574f8f20dc8b7d84597bdfde61b0f7b": { "describe": { "columns": [ { "name": "position!", "ordinal": 0, "type_info": "Int4" } ], "nullable": [ null ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT\n COALESCE(MAX(position) + 1, 0) AS \"position!\"\n FROM\n channels\n WHERE\n guild_id = $1\n AND\n (parent_id = $2 OR parent_id IS NULL AND $2 IS NULL)\n " }, "0f13e1beaa0f0a32d4411273614a4bc7319318fb12be988a3ad74234d5024965": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [] } }, "query": "UPDATE roles SET position = position + 1 WHERE position > 0" }, "0f99362fa3d40808a27279737bf5f4fbebc623ebc60af6e067e2f1a9857d95b2": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "name", "ordinal": 2, "type_info": "Text" }, { "name": "color", "ordinal": 3, "type_info": "Int4" }, { "name": "position", "ordinal": 4, "type_info": "Int2" }, { "name": "gradient", "ordinal": 5, "type_info": "Bool" }, { "name": "allowed_permissions", "ordinal": 6, "type_info": "Int8" }, { "name": "denied_permissions", "ordinal": 7, "type_info": "Int8" }, { "name": "flags", "ordinal": 8, "type_info": "Int4" } ], "nullable": [ false, false, false, true, false, false, false, false, false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT * FROM roles WHERE guild_id = $1 AND id = $2" }, "12be787fd9a8ded7a277e77e97a5544cfecdd2c4125db7bb481568828824784b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8", "Text", "Int4", "Int8", "Int8", "Int4" ] } }, "query": "INSERT INTO roles\n (id, guild_id, name, color, allowed_permissions, denied_permissions, position, flags)\n VALUES\n ($1, $2, $3, $4, $5, $6, 1, $7)\n " }, "13a9bda24d4f58f3538f0d958f1cfc7a0fe964545d45b636db5aff7ac930499f": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Text", "Text", "Text", "Text", "Int8", "Int4" ] } }, "query": "INSERT INTO\n guilds (id, name, description, icon, banner, owner_id, flags)\n VALUES\n ($1, $2, $3, $4, $5, $6, $7)\n " }, "16be74ae3c10e45fcfaa6f8cc7422758ff28d782da6929de21fd4d6560ac657c": { "describe": { "columns": [ { "name": "author_id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ true ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT author_id FROM messages WHERE id = $1" }, "179f3babac19b2c6a4dde26dbadc37ea17e2ea34bf95a3f714841a8e0cac2f6f": { "describe": { "columns": [ { "name": "role_id", "ordinal": 0, "type_info": "Int8" }, { "name": "user_id", "ordinal": 1, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 2, "type_info": "Int8" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT\n role_id,\n user_id,\n guild_id\n FROM\n role_data\n WHERE\n guild_id IN (SELECT guild_id FROM members WHERE id = $1)\n " }, "1860915af47291fe425dd536ade0db4b8b18bc6083efcb685152ca5f740456bb": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM users WHERE email = $1)" }, "1b1c4aff0145e49d057a401ea0d53e928e92fd637633c6eab12fe5b36be917c2": { "describe": { "columns": [ { "name": "id!", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ null ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT DISTINCT\n id AS \"id!\"\n FROM members\n WHERE\n guild_id IN (SELECT guild_id FROM members WHERE id = $1)\n UNION SELECT\n target_id AS \"id!\"\n FROM\n relationships\n WHERE\n user_id = $1\n UNION SELECT $1 AS \"id!\"\n " }, "1c244b204b6dc9ee0ed7c56673644cc66ac548872772c7eacdd7d7565c669de0": { "describe": { "columns": [ { "name": "code", "ordinal": 0, "type_info": "Text" }, { "name": "inviter_id", "ordinal": 1, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 2, "type_info": "Int8" }, { "name": "created_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "uses", "ordinal": 4, "type_info": "Int4" }, { "name": "max_uses", "ordinal": 5, "type_info": "Int4" }, { "name": "max_age", "ordinal": 6, "type_info": "Int4" } ], "nullable": [ false, false, false, false, false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "UPDATE invites\n SET uses = uses + 1\n WHERE\n code = $1\n AND (max_age = 0 OR created_at + max_age * interval '1 second' > NOW())\n RETURNING *\n " }, "1fee245716c07941ac5dd77780673fabfbd5f8e51d7deef0273cdc41a072438b": { "describe": { "columns": [ { "name": "code", "ordinal": 0, "type_info": "Text" }, { "name": "inviter_id", "ordinal": 1, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 2, "type_info": "Int8" }, { "name": "created_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "uses", "ordinal": 4, "type_info": "Int4" }, { "name": "max_uses", "ordinal": 5, "type_info": "Int4" }, { "name": "max_age", "ordinal": 6, "type_info": "Int4" } ], "nullable": [ false, false, false, false, false, false, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT * FROM invites\n WHERE\n guild_id = $1\n AND (max_age = 0 OR created_at + max_age * interval '1 second' > NOW())\n " }, "23173a02aed59b7bc065a542af23c4d0dec01d5cabc38cbc1c5b4a6d64a7ee77": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Int8", "Int8", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM channels WHERE id = $1 AND guild_id = $2 AND type = $3)" }, "24ade9288fd8119e54fcf7f1498135255b48dc03ee574ad3b7185515a8267865": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "owner_id", "ordinal": 1, "type_info": "Int8" }, { "name": "name", "ordinal": 2, "type_info": "Text" }, { "name": "description", "ordinal": 3, "type_info": "Text" }, { "name": "icon", "ordinal": 4, "type_info": "Text" }, { "name": "banner", "ordinal": 5, "type_info": "Text" }, { "name": "vanity_url", "ordinal": 6, "type_info": "Text" }, { "name": "flags", "ordinal": 7, "type_info": "Int4" }, { "name": "member_count!", "ordinal": 8, "type_info": "Int8" } ], "nullable": [ false, false, false, true, true, true, true, false, null ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT \n guilds.*,\n (SELECT COUNT(*) FROM members WHERE guild_id = $1) AS \"member_count!\"\n FROM\n guilds \n WHERE \n id IN (SELECT guild_id FROM members WHERE id = $1)\n " }, "2b72dc65f84de2c96fe943fb2fc90c181f10da5e6063c5497e973e344ec32797": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8", "Int8", "Text", "Jsonb" ] } }, "query": "INSERT INTO messages (id, channel_id, author_id, content, embeds)\n VALUES ($1, $2, $3, $4, $5::JSONB)" }, "2bb472caf08d980deb946359f3d68dd0295fa710d12580dfe9711dedaa1a6aaa": { "describe": { "columns": [ { "name": "guild_id", "ordinal": 0, "type_info": "Int8" }, { "name": "owner_id", "ordinal": 1, "type_info": "Int8" }, { "name": "kind", "ordinal": 2, "type_info": "Text" } ], "nullable": [ true, true, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT guild_id, owner_id, type AS kind FROM channels WHERE id = $1" }, "366e65997d0ed6a92d40d9031f6b76e77638472532a1c2a8f9e617704a62ce2a": { "describe": { "columns": [ { "name": "discriminator", "ordinal": 0, "type_info": "Int2" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Text", "Text", "Text" ] } }, "query": "INSERT INTO\n users (id, username, email, password)\n VALUES\n ($1, $2, $3, $4)\n RETURNING\n discriminator" }, "38c5ceb62b97b0d177eea01f0a34fb3b098c277c8f79ae41817760fd97c09c4d": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8" ] } }, "query": "DELETE FROM invites WHERE guild_id = $1" }, "395e8b194eda3b1c847dcf42ebc5a29c523586a924ed8aacdf2d969c7c9d777d": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "nick", "ordinal": 2, "type_info": "Text" }, { "name": "joined_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "username", "ordinal": 4, "type_info": "Text" }, { "name": "discriminator", "ordinal": 5, "type_info": "Int2" }, { "name": "avatar", "ordinal": 6, "type_info": "Text" }, { "name": "banner", "ordinal": 7, "type_info": "Text" }, { "name": "bio", "ordinal": 8, "type_info": "Text" }, { "name": "flags", "ordinal": 9, "type_info": "Int4" } ], "nullable": [ false, false, true, false, false, false, true, true, true, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT\n members.*,\n users.username,\n users.discriminator,\n users.avatar,\n users.banner,\n users.bio,\n users.flags\n FROM\n members\n INNER JOIN\n users\n ON\n members.id = users.id\n WHERE\n guild_id IN (SELECT guild_id FROM members WHERE id = $1)\n " }, "3b742230b799b60f0125f252618921ff0d69773b5595b542cbf322eaada813cb": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "INSERT INTO channels\n (id, guild_id, type, name, position, slowmode, nsfw, locked)\n VALUES\n ($1, $2, 'text', 'general', 0, 0, false, false)" }, "3e6ef98691c8a18749fe68817ca6032cba24a84bdd951e00c086d0c7aa0ad2ec": { "describe": { "columns": [ { "name": "discriminator", "ordinal": 0, "type_info": "Int2" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Text", "Int2" ] } }, "query": "SELECT discriminator FROM users WHERE id != $1 AND username = $2 AND discriminator = $3" }, "3f85b7625724dd4efc25e1d5ecdcc6a8dcac87a5f8a34ae64c449812ef3cf7a4": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Int4", "Int8", "Int8", "Int4", "Int8", "Int8" ] } }, "query": "UPDATE\n roles\n SET\n name = $1,\n color = $2,\n allowed_permissions = $3,\n denied_permissions = $4,\n flags = $5\n WHERE\n guild_id = $6\n AND\n id = $7\n " }, "4000010fc286e6ce22cc622c737f5d15c6f56e1b1e012e4ceb59be90ed51cc3f": { "describe": { "columns": [ { "name": "joined_at", "ordinal": 0, "type_info": "Timestamptz" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "INSERT INTO members (guild_id, id) VALUES ($1, $2)\n ON CONFLICT (guild_id, id) DO NOTHING RETURNING joined_at" }, "439dd9d64a9e84ae6dc29b53429af8e4332bce61df9e730dba64e1348b98bdd2": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT id FROM members WHERE guild_id = $1" }, "45a536b46a3654b06157d263f6722d44ca054a529c6e7f80f94b17c7c557d31b": { "describe": { "columns": [ { "name": "token", "ordinal": 0, "type_info": "Text" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT token FROM tokens WHERE user_id = $1" }, "480c1f1c02ccadd33b7a9594af90b0a04813253445f5469ea4d287cbc3ea256f": { "describe": { "columns": [ { "name": "owner_id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT owner_id FROM guilds WHERE id = $1" }, "50293c2e54af11d4c2a553e29b671cef087a159c6ee7182d8ca929ecb748f3b7": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8" ] } }, "query": "DELETE FROM users WHERE id = $1" }, "52645061c871d222d342edf74fa669f5e853ec6b16202c334e1d09ca449df7c4": { "describe": { "columns": [ { "name": "joined_at", "ordinal": 0, "type_info": "Timestamptz" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "INSERT INTO members (id, guild_id) VALUES ($1, $2) RETURNING joined_at" }, "5b06fca807465ebbf0adb25fb0bb6adbc282c70d96b72afbf01c2821e9249634": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "revision_id", "ordinal": 1, "type_info": "Int8" }, { "name": "channel_id", "ordinal": 2, "type_info": "Int8" }, { "name": "author_id", "ordinal": 3, "type_info": "Int8" }, { "name": "type", "ordinal": 4, "type_info": "Text" }, { "name": "content", "ordinal": 5, "type_info": "Text" }, { "name": "embeds", "ordinal": 6, "type_info": "Jsonb" }, { "name": "flags", "ordinal": 7, "type_info": "Int4" }, { "name": "stars", "ordinal": 8, "type_info": "Int4" }, { "name": "metadata_user_id", "ordinal": 9, "type_info": "Int8" }, { "name": "metadata_pinned_message_id", "ordinal": 10, "type_info": "Int8" }, { "name": "metadata_pinned_by", "ordinal": 11, "type_info": "Int8" }, { "name": "embeds_ser: sqlx::types::Json>", "ordinal": 12, "type_info": "Jsonb" } ], "nullable": [ false, false, false, true, false, true, false, false, false, true, true, true, false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT\n messages.*,\n embeds AS \"embeds_ser: sqlx::types::Json>\"\n FROM\n messages\n WHERE\n channel_id = $1\n AND\n id = $2\n AND\n revision_id = 0\n " }, "60d9eee901af4add73b42e09909165b45e85639c8e6ba564725cd0ba8c0b833e": { "describe": { "columns": [ { "name": "created_at", "ordinal": 0, "type_info": "Timestamptz" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Int8", "Int8", "Int4", "Int4" ] } }, "query": "INSERT INTO invites\n (code, inviter_id, guild_id, max_uses, max_age)\n VALUES\n ($1, $2, $3, $4, $5)\n ON CONFLICT (code) DO NOTHING\n RETURNING created_at\n " }, "65f796a4732de6258ab9bb6577e8ca06d368b4a2b175b77eca430b9fe39c11ea": { "describe": { "columns": [ { "name": "target_id", "ordinal": 0, "type_info": "Int8" }, { "name": "username", "ordinal": 1, "type_info": "Text" }, { "name": "discriminator", "ordinal": 2, "type_info": "Int2" }, { "name": "avatar", "ordinal": 3, "type_info": "Text" }, { "name": "banner", "ordinal": 4, "type_info": "Text" }, { "name": "bio", "ordinal": 5, "type_info": "Text" }, { "name": "flags", "ordinal": 6, "type_info": "Int4" }, { "name": "kind: _", "ordinal": 7, "type_info": { "Custom": { "kind": { "Enum": [ "friend", "blocked", "incoming", "outgoing" ] }, "name": "relationship_type" } } } ], "nullable": [ false, false, false, true, true, true, false, false ], "parameters": { "Left": [ "Int8", "Int8", { "Custom": { "kind": { "Enum": [ "friend", "blocked", "incoming", "outgoing" ] }, "name": "relationship_type" } } ] } }, "query": "WITH updated AS (\n INSERT INTO relationships\n (user_id, target_id, type)\n VALUES\n ($1, $2, $3)\n ON CONFLICT (user_id, target_id)\n DO UPDATE SET type = $3\n RETURNING target_id, type\n )\n SELECT\n u.id AS target_id,\n u.username AS username,\n u.discriminator AS discriminator,\n u.avatar AS avatar,\n u.banner AS banner,\n u.bio AS bio,\n u.flags AS flags,\n updated.type AS \"kind: _\"\n FROM\n updated\n INNER JOIN\n users AS u ON u.id = updated.target_id\n " }, "6d32b8f01fdadb4ad0fd7549ba60b88bd620340eaa96f5a21791cd877007ad90": { "describe": { "columns": [ { "name": "target_id", "ordinal": 0, "type_info": "Int8" }, { "name": "username", "ordinal": 1, "type_info": "Text" }, { "name": "discriminator", "ordinal": 2, "type_info": "Int2" }, { "name": "avatar", "ordinal": 3, "type_info": "Text" }, { "name": "banner", "ordinal": 4, "type_info": "Text" }, { "name": "bio", "ordinal": 5, "type_info": "Text" }, { "name": "flags", "ordinal": 6, "type_info": "Int4" }, { "name": "kind: _", "ordinal": 7, "type_info": { "Custom": { "kind": { "Enum": [ "friend", "blocked", "incoming", "outgoing" ] }, "name": "relationship_type" } } } ], "nullable": [ false, false, false, true, true, true, false, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "\n SELECT\n r.target_id,\n u.username AS username,\n u.discriminator AS discriminator,\n u.avatar AS avatar,\n u.banner AS banner,\n u.bio AS bio,\n u.flags AS flags,\n r.type AS \"kind: _\"\n FROM\n relationships AS r\n INNER JOIN\n users AS u ON u.id = r.target_id\n WHERE user_id = $1" }, "7132360ca9b4dcbe19bbbe046033fba320ff4fc21e9368c1e7a81e0487e936b6": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "username", "ordinal": 1, "type_info": "Text" }, { "name": "discriminator", "ordinal": 2, "type_info": "Int2" }, { "name": "email", "ordinal": 3, "type_info": "Text" }, { "name": "password", "ordinal": 4, "type_info": "Text" }, { "name": "avatar", "ordinal": 5, "type_info": "Text" }, { "name": "banner", "ordinal": 6, "type_info": "Text" }, { "name": "bio", "ordinal": 7, "type_info": "Text" }, { "name": "flags", "ordinal": 8, "type_info": "Int4" } ], "nullable": [ false, false, false, true, true, true, true, true, false ], "parameters": { "Left": [ "Text", "Int2" ] } }, "query": "SELECT * FROM users WHERE username = $1 AND discriminator = $2" }, "76555742b5d31d1feada4e02caae4da134494976267f1234ceb601a50318829a": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text", "Text", "Int2", "Int8" ] } }, "query": "UPDATE channels SET name = $1, topic = $2, icon = $3, user_limit = $4 WHERE id = $5" }, "79882605db255c14711a09b7c13a2bedc357e0272685820172a6451b6bac6364": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "DELETE FROM\n relationships\n WHERE\n user_id = $1 AND target_id = $2\n OR\n target_id = $1 AND user_id = $2 AND type != 'blocked'\n " }, "7ca2668d2402b8702ed588885790c4c6657be36f0850d3df2cf0e11998b88001": { "describe": { "columns": [ { "name": "role_id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT role_id FROM role_data WHERE guild_id = $1" }, "7d5b0df20f033a397c1fa0b3f533e4abaf6a1aa48812cf83903094b8d09e1058": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "position", "ordinal": 1, "type_info": "Int2" } ], "nullable": [ false, false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT\n r.id,\n r.position\n FROM roles r\n INNER JOIN\n role_data rd\n ON\n r.id = rd.role_id\n WHERE\n r.guild_id = $1 AND rd.user_id = $2\n ORDER BY\n r.position DESC\n LIMIT 1\n " }, "8115eb66c0d1520072bfa2515f49b13a66b78921ec126656b7591afc0faec4c4": { "describe": { "columns": [ { "name": "owner_id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ true ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT owner_id FROM channels WHERE id = $1" }, "82656124ef41560bc2fe44a9e64c26c52399c0b3410f5eef6a609823a599e93d": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8" ] } }, "query": "DELETE FROM tokens WHERE user_id = $1" }, "843923b9a0257cf80f1dff554e7dc8fdfc05f489328e8376513124dfb42996e3": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "username", "ordinal": 1, "type_info": "Text" }, { "name": "discriminator", "ordinal": 2, "type_info": "Int2" }, { "name": "email", "ordinal": 3, "type_info": "Text" }, { "name": "password", "ordinal": 4, "type_info": "Text" }, { "name": "avatar", "ordinal": 5, "type_info": "Text" }, { "name": "banner", "ordinal": 6, "type_info": "Text" }, { "name": "bio", "ordinal": 7, "type_info": "Text" }, { "name": "flags", "ordinal": 8, "type_info": "Int4" } ], "nullable": [ false, false, false, true, true, true, true, true, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT * FROM users WHERE id = $1" }, "87742854ab3161409d6fb266f96c1d251b75dc157e95dbeb9b13b915b8fee9af": { "describe": { "columns": [ { "name": "out", "ordinal": 0, "type_info": "Int2" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT generate_discriminator($1) AS out" }, "88baf02973b98c1cc93bdc415d026bafd2ea602116ccde8f30067d5b0738fa18": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "name", "ordinal": 1, "type_info": "Text" }, { "name": "description", "ordinal": 2, "type_info": "Text" }, { "name": "icon", "ordinal": 3, "type_info": "Text" }, { "name": "banner", "ordinal": 4, "type_info": "Text" }, { "name": "owner_id", "ordinal": 5, "type_info": "Int8" }, { "name": "flags", "ordinal": 6, "type_info": "Int4" }, { "name": "vanity_url", "ordinal": 7, "type_info": "Text" }, { "name": "member_count!", "ordinal": 8, "type_info": "Int8" } ], "nullable": [ false, false, true, true, true, false, false, true, null ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT\n id,\n name,\n description,\n icon,\n banner,\n owner_id,\n flags,\n vanity_url,\n (SELECT COUNT(*) FROM members WHERE guild_id = $1) AS \"member_count!\"\n FROM\n guilds\n WHERE\n id = $1" }, "8e9435b541172c361ac79545d45bc91d7826b3ff54f84be50d38d06ec562d5a9": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "name", "ordinal": 2, "type_info": "Text" }, { "name": "color", "ordinal": 3, "type_info": "Int4" }, { "name": "position", "ordinal": 4, "type_info": "Int2" }, { "name": "gradient", "ordinal": 5, "type_info": "Bool" }, { "name": "allowed_permissions", "ordinal": 6, "type_info": "Int8" }, { "name": "denied_permissions", "ordinal": 7, "type_info": "Int8" }, { "name": "flags", "ordinal": 8, "type_info": "Int4" } ], "nullable": [ false, false, false, true, false, false, false, false, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT * FROM roles WHERE guild_id = $1 ORDER BY position ASC" }, "92942b5a993dbd832c27fcd6674d72d494f7545382a569e8c0aac613a551e323": { "describe": { "columns": [ { "name": "guild_id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT guild_id FROM members WHERE id = $1" }, "962f4ae79bf3e10d96a5b5c0b7a3e66bf56087581455f113527aa8fd22c83422": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM channels WHERE id = $1 AND guild_id = $2)" }, "9917d85ed925023644e6d359b3efffa5e65c7e3cb1a720ed608ed0c83c4f7572": { "describe": { "columns": [ { "name": "role_id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT role_id FROM role_data WHERE guild_id = $1 AND user_id = $2" }, "9b2a479ebc2d6066b96dad7aaeaf9144f28ed99afd95e6e7b394e6e6c327e7ca": { "describe": { "columns": [ { "name": "kind: _", "ordinal": 0, "type_info": { "Custom": { "kind": { "Enum": [ "friend", "blocked", "incoming", "outgoing" ] }, "name": "relationship_type" } } } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT type AS \"kind: _\" FROM relationships WHERE user_id = $1 AND target_id = $2" }, "9d2c649ff158908f95226af761c8b96f3e79fb760b1be0335ef2e58a3b2dd831": { "describe": { "columns": [ { "name": "password!", "ordinal": 0, "type_info": "Text" } ], "nullable": [ true ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT password AS \"password!\" FROM users WHERE id = $1" }, "9efeb87f889e715d0325cf58df2e48b939e41d5eaea867992ba82fc71ff018a6": { "describe": { "columns": [ { "name": "position", "ordinal": 0, "type_info": "Int2" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT position FROM roles WHERE guild_id = $1 AND id = $2" }, "a94dbea7a6f45cdae81f8be0dda6d149e13fd1ea6ba90ce66e80814681cebb60": { "describe": { "columns": [ { "name": "user_id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT user_id FROM channel_recipients WHERE channel_id = $1" }, "ad7d5bda90e896e440660b84691f2b7ef315db652bc31381e55cef6c6faaffed": { "describe": { "columns": [ { "name": "position", "ordinal": 0, "type_info": "Int2" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Int8Array" ] } }, "query": "SELECT\n position\n FROM\n roles\n WHERE\n guild_id = $1\n AND\n id = ANY($2)\n ORDER BY\n position DESC\n LIMIT 1\n " }, "af3cf99d962f642d6e9069c1687834f0b3633ffe4f42afb2c464167a7a555898": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8" ] } }, "query": "DELETE FROM guilds WHERE id = $1" }, "afa5f85b96f6cbeae8c7218db551a2f3ddca5267421b63853fecb1d002021015": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Text", "Text", "Int8" ] } }, "query": "INSERT INTO channels (id, name, type, owner_id) VALUES ($1, $2, $3, $4)" }, "b0aeda436354e29cb909c13db36333af8772a732bec6d5e64a6efa0290f1d293": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "DELETE FROM members WHERE guild_id = $1 AND id = $2" }, "bbfc76e3af9ea14f7db905a60a55ee902e6fd91abc1637767c9d65cf54d16d01": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Text" ] } }, "query": "INSERT INTO tokens (user_id, token) VALUES ($1, $2)" }, "bce0bcb7008ef10358d1184400dea05d757c69f1b64e4c3216d82ae7af749572": { "describe": { "columns": [ { "name": "flags", "ordinal": 0, "type_info": "Int4" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT flags FROM roles WHERE guild_id = $1 AND id = $2" }, "bed6e0bc072164cefe0f62e2433290c6b2601d5e85e013d84de4ee360b8a484d": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "revision_id", "ordinal": 1, "type_info": "Int8" }, { "name": "channel_id", "ordinal": 2, "type_info": "Int8" }, { "name": "author_id", "ordinal": 3, "type_info": "Int8" }, { "name": "type", "ordinal": 4, "type_info": "Text" }, { "name": "content", "ordinal": 5, "type_info": "Text" }, { "name": "embeds", "ordinal": 6, "type_info": "Jsonb" }, { "name": "flags", "ordinal": 7, "type_info": "Int4" }, { "name": "stars", "ordinal": 8, "type_info": "Int4" }, { "name": "metadata_user_id", "ordinal": 9, "type_info": "Int8" }, { "name": "metadata_pinned_message_id", "ordinal": 10, "type_info": "Int8" }, { "name": "metadata_pinned_by", "ordinal": 11, "type_info": "Int8" }, { "name": "embeds_ser: sqlx::types::Json>", "ordinal": 12, "type_info": "Jsonb" } ], "nullable": [ false, false, false, true, false, true, false, false, false, true, true, true, false ], "parameters": { "Left": [ "Int8", "Int8", "Int8", "Int8", "Int8" ] } }, "query": "SELECT\n messages.*,\n embeds AS \"embeds_ser: sqlx::types::Json>\"\n FROM\n messages\n WHERE\n channel_id = $1\n AND\n revision_id = 0\n AND\n ($2::BIGINT IS NULL OR id < $2)\n AND\n ($3::BIGINT IS NULL OR id > $3)\n AND\n ($4::BIGINT IS NULL OR author_id = $4)\n ORDER BY id DESC LIMIT $5" }, "c0e8c822329cf7f119412c93753f3cd476d8d426e27a456d7257ee1dd3192e0a": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "nick", "ordinal": 2, "type_info": "Text" }, { "name": "joined_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "username", "ordinal": 4, "type_info": "Text" }, { "name": "discriminator", "ordinal": 5, "type_info": "Int2" }, { "name": "avatar", "ordinal": 6, "type_info": "Text" }, { "name": "banner", "ordinal": 7, "type_info": "Text" }, { "name": "bio", "ordinal": 8, "type_info": "Text" }, { "name": "flags", "ordinal": 9, "type_info": "Int4" } ], "nullable": [ false, false, true, false, false, false, true, true, true, false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT\n m.id,\n m.guild_id,\n m.nick AS nick,\n m.joined_at AS joined_at,\n u.username AS username,\n u.discriminator AS discriminator,\n u.avatar AS avatar,\n u.banner AS banner,\n u.bio AS bio,\n u.flags AS flags\n FROM\n members AS m\n INNER JOIN\n users AS u ON u.id = m.id\n WHERE guild_id = $1 AND m.id = $2" }, "c10a5abdb5e73df596ed91990e70a7472e055d72505a45fcc59964f9d1c53f7b": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [] } }, "query": "SELECT id FROM guilds" }, "c2d79cd2ee7e2ca0694dc47e7cf50f21da605bad0e1dc5575b2d7845747bf733": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "flags", "ordinal": 1, "type_info": "Int4" } ], "nullable": [ false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT id, flags FROM users WHERE id = (SELECT user_id FROM tokens WHERE token = $1)" }, "c3d2ef76d84dfba75ed057018bae924b605ac65fc92357735aa7dccce668b150": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "name", "ordinal": 2, "type_info": "Text" }, { "name": "color", "ordinal": 3, "type_info": "Int4" }, { "name": "position", "ordinal": 4, "type_info": "Int2" }, { "name": "gradient", "ordinal": 5, "type_info": "Bool" }, { "name": "allowed_permissions", "ordinal": 6, "type_info": "Int8" }, { "name": "denied_permissions", "ordinal": 7, "type_info": "Int8" }, { "name": "flags", "ordinal": 8, "type_info": "Int4" } ], "nullable": [ false, false, false, true, false, false, false, false, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT\n *\n FROM\n roles\n WHERE\n guild_id IN (SELECT guild_id FROM members WHERE id = $1)\n ORDER BY\n position ASC\n " }, "c7e36a91ac50c648a3a4766123fc0bf7f13c8e901523a356e5c1403cd55d6345": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "UPDATE\n channels\n SET\n position = position - 1\n WHERE\n guild_id = $1\n AND\n position > (SELECT position FROM channels WHERE id = $2)\n " }, "cb8df133019e624ce258b652b3fc64526a20858e39bacaca4eee34480a918702": { "describe": { "columns": [ { "name": "code", "ordinal": 0, "type_info": "Text" }, { "name": "inviter_id", "ordinal": 1, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 2, "type_info": "Int8" }, { "name": "created_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "uses", "ordinal": 4, "type_info": "Int4" }, { "name": "max_uses", "ordinal": 5, "type_info": "Int4" }, { "name": "max_age", "ordinal": 6, "type_info": "Int4" } ], "nullable": [ false, false, false, false, false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * FROM invites\n WHERE\n code = $1\n AND (max_age = 0 OR created_at + max_age * interval '1 second' > NOW())\n " }, "cc22f39ade26da51026eb4764cf22fa1c3e335254deeb3d1f122e210f4d6b205": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM channel_recipients WHERE channel_id = $1 AND user_id = $2)" }, "d59fa440c1c209176b8a9c6779321964b1efc6b2aa6289c5d40cf5c07db30e53": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id!", "ordinal": 1, "type_info": "Int8" }, { "name": "name!", "ordinal": 2, "type_info": "Text" }, { "name": "kind", "ordinal": 3, "type_info": "Text" }, { "name": "position!", "ordinal": 4, "type_info": "Int2" }, { "name": "parent_id", "ordinal": 5, "type_info": "Int8" }, { "name": "icon", "ordinal": 6, "type_info": "Text" }, { "name": "topic", "ordinal": 7, "type_info": "Text" }, { "name": "nsfw", "ordinal": 8, "type_info": "Bool" }, { "name": "locked", "ordinal": 9, "type_info": "Bool" }, { "name": "slowmode", "ordinal": 10, "type_info": "Int4" }, { "name": "user_limit", "ordinal": 11, "type_info": "Int2" } ], "nullable": [ false, true, true, false, true, true, true, true, true, true, true, true ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT\n id,\n guild_id AS \"guild_id!\",\n name AS \"name!\",\n type AS kind,\n position AS \"position!\",\n parent_id,\n icon,\n topic,\n nsfw,\n locked,\n slowmode,\n user_limit\n FROM\n channels\n WHERE\n guild_id = $1" }, "d6936366559a2ff31bf0d5346b9e01c226dd6da007bfe74c1ea9d05b82d60481": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Int2", "Int8" ] } }, "query": "UPDATE users SET username = $1, discriminator = $2 WHERE id = $3" }, "dd8628efdc56d427db7b0ca21125fd36e7dd31513ee81815649c080b6304dab5": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id!", "ordinal": 1, "type_info": "Int8" }, { "name": "name!", "ordinal": 2, "type_info": "Text" }, { "name": "kind", "ordinal": 3, "type_info": "Text" }, { "name": "position!", "ordinal": 4, "type_info": "Int2" }, { "name": "parent_id", "ordinal": 5, "type_info": "Int8" }, { "name": "icon", "ordinal": 6, "type_info": "Text" }, { "name": "topic", "ordinal": 7, "type_info": "Text" }, { "name": "nsfw", "ordinal": 8, "type_info": "Bool" }, { "name": "locked", "ordinal": 9, "type_info": "Bool" }, { "name": "slowmode", "ordinal": 10, "type_info": "Int4" }, { "name": "user_limit", "ordinal": 11, "type_info": "Int2" } ], "nullable": [ false, true, true, false, true, true, true, true, true, true, true, true ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT\n id,\n guild_id AS \"guild_id!\",\n name AS \"name!\",\n type AS kind,\n position AS \"position!\",\n parent_id,\n icon,\n topic,\n nsfw,\n locked,\n slowmode,\n user_limit\n FROM\n channels\n WHERE\n guild_id IN (SELECT guild_id FROM members WHERE id = $1)" }, "e185e5e048649549a8a6002b0dce896cb7e21b797689ceccf7cf750d4a9c255c": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int2" ] } }, "query": "UPDATE roles SET position = position - 1 WHERE position > $1" }, "e25a8fe4392d071f013190ed105536e443701795f250a006da69c02874b93d8e": { "describe": { "columns": [ { "name": "target_id", "ordinal": 0, "type_info": "Int8" }, { "name": "allow", "ordinal": 1, "type_info": "Int8" }, { "name": "deny", "ordinal": 2, "type_info": "Int8" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT target_id, allow, deny FROM channel_overwrites WHERE channel_id = $1" }, "e4032056b32aac097433582f89cef16b408185055cc1610d574cad7c9cbe8122": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "name", "ordinal": 2, "type_info": "Text" }, { "name": "color", "ordinal": 3, "type_info": "Int4" }, { "name": "position", "ordinal": 4, "type_info": "Int2" }, { "name": "gradient", "ordinal": 5, "type_info": "Bool" }, { "name": "allowed_permissions", "ordinal": 6, "type_info": "Int8" }, { "name": "denied_permissions", "ordinal": 7, "type_info": "Int8" }, { "name": "flags", "ordinal": 8, "type_info": "Int4" } ], "nullable": [ false, false, false, true, false, false, false, false, false ], "parameters": { "Left": [ "Int8", "Int8", "Int4", "Int8", "Int8" ] } }, "query": "INSERT INTO roles\n (id, guild_id, name, flags, position, allowed_permissions, denied_permissions)\n VALUES\n ($1, $2, 'Default', $3, 0, $4, $5)\n RETURNING *;\n " }, "e62d4c1c884643c8de3bece9cdcdf975c87030ac185903f266b144727b90df1e": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Int8", "Int8" ] } }, "query": "UPDATE members SET nick = $1 WHERE guild_id = $2 AND id = $3" }, "e9de53adfec90f502742c12d6ca3f6ccfc02571257b85e142d05fd64d3c53a52": { "describe": { "columns": [ { "name": "position", "ordinal": 0, "type_info": "Int2" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "DELETE FROM roles WHERE guild_id = $1 AND id = $2 RETURNING position" }, "e9f8d85417fdc81bd2dbfe749c7da303738ef2b5b1bd2f4fc1a22947108d93a2": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "guild_id", "ordinal": 1, "type_info": "Int8" }, { "name": "type", "ordinal": 2, "type_info": "Text" }, { "name": "name", "ordinal": 3, "type_info": "Text" }, { "name": "position", "ordinal": 4, "type_info": "Int2" }, { "name": "parent_id", "ordinal": 5, "type_info": "Int8" }, { "name": "topic", "ordinal": 6, "type_info": "Text" }, { "name": "icon", "ordinal": 7, "type_info": "Text" }, { "name": "slowmode", "ordinal": 8, "type_info": "Int4" }, { "name": "nsfw", "ordinal": 9, "type_info": "Bool" }, { "name": "locked", "ordinal": 10, "type_info": "Bool" }, { "name": "user_limit", "ordinal": 11, "type_info": "Int2" }, { "name": "owner_id", "ordinal": 12, "type_info": "Int8" } ], "nullable": [ false, true, false, true, true, true, true, true, true, true, true, true, true ], "parameters": { "Left": [ "Int8" ] } }, "query": "SELECT * FROM channels WHERE id = $1" }, "eb537d26b84dc230b2c30bc21b3aef3f246c262a0cd4f4f59f00f5314f7bffe9": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text", "Text", "Int8" ] } }, "query": "UPDATE users SET avatar = $1, banner = $2, bio = $3 WHERE id = $4" }, "eefe8e4ae641d9b17a5a6285a5d0c0dc622eb049ad67f8b693bb847f1f462658": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8", "Int8" ] } }, "query": "DELETE FROM role_data WHERE guild_id = $1 AND user_id = $2 AND role_id != $3" }, "f097718cce3349d88d5d8c01966697788131591ac244df768b8b37042547775f": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "DELETE FROM messages WHERE id = $1 AND channel_id = $2" }, "f3f58600e971f1be6cbe206bba24f77769f54c6230e28f5b3dc719b869d9cb3f": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int8" }, { "name": "username", "ordinal": 1, "type_info": "Text" }, { "name": "discriminator", "ordinal": 2, "type_info": "Int2" }, { "name": "email", "ordinal": 3, "type_info": "Text" }, { "name": "password", "ordinal": 4, "type_info": "Text" }, { "name": "avatar", "ordinal": 5, "type_info": "Text" }, { "name": "banner", "ordinal": 6, "type_info": "Text" }, { "name": "bio", "ordinal": 7, "type_info": "Text" }, { "name": "flags", "ordinal": 8, "type_info": "Int4" } ], "nullable": [ false, false, false, true, true, true, true, true, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * FROM users WHERE email = $1" }, "f4bb0d3faa8629930605d329c02e9106f4525560fa346edb51c4a1d95b92e39e": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Int8", "Text", "Text", "Int2", "Int8", "Text", "Text", "Int2" ] } }, "query": "INSERT INTO channels\n (id, guild_id, type, name, position, parent_id, topic, icon, user_limit)\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9)\n " }, "f8fde17d591865b65e5081b251eefe2b407de237b44656004aa4b9f17a338920": { "describe": { "columns": [ { "name": "target_id", "ordinal": 0, "type_info": "Int8" }, { "name": "username", "ordinal": 1, "type_info": "Text" }, { "name": "discriminator", "ordinal": 2, "type_info": "Int2" }, { "name": "avatar", "ordinal": 3, "type_info": "Text" }, { "name": "banner", "ordinal": 4, "type_info": "Text" }, { "name": "bio", "ordinal": 5, "type_info": "Text" }, { "name": "flags", "ordinal": 6, "type_info": "Int4" }, { "name": "kind: _", "ordinal": 7, "type_info": { "Custom": { "kind": { "Enum": [ "friend", "blocked", "incoming", "outgoing" ] }, "name": "relationship_type" } } } ], "nullable": [ false, false, false, true, true, true, false, false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "\n SELECT\n r.target_id,\n u.username AS username,\n u.discriminator AS discriminator,\n u.avatar AS avatar,\n u.banner AS banner,\n u.bio AS bio,\n u.flags AS flags,\n r.type AS \"kind: _\"\n FROM\n relationships AS r\n INNER JOIN\n users AS u ON u.id = r.target_id\n WHERE user_id = $1 AND target_id = $2" } }