# events[].parameters[].value
Processing by Api::V1::BookmarksController#index as HTML

# events[].parameters[].value
  [1m[36mTRANSACTION (1.6ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mUserRole Load (1.0ms)[0m  [1m[34mSELECT "user_roles".* FROM "user_roles" WHERE "user_r (...58 more characters)

# events[].sql_query.sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mUserRole Load (1.8ms)[0m  [1m[34mSELECT "user_roles".* FROM "user_roles" WHERE "user_r (...58 more characters)

# events[].sql_query.sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mUser Exists? (2.9ms)[0m  [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $ (...67 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mAccount Exists? (1.2ms)[0m  [1m[34mSELECT 1 AS one FROM "accounts" WHERE LOWER("accoun (...103 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "accounts" WHERE LOWER("accounts"."username") = 'trista_durgan1' AND LOWER("accounts"."domain") IS NULL LIMIT $1

# events[].sql_query.normalized_sql
SELECT $2 AS one FROM "accounts" WHERE LOWER("accounts"."username") = $3 AND LOWER("accounts"."domain") IS NULL LIMIT $1

# events[].parameters[].value
  [1m[36mSetting Load (3.1ms)[0m  [1m[34mSELECT "settings".* FROM "settings" WHERE (thing_type  (...145 more characters)

# events[].sql_query.sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].sql_query.normalized_sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].return_value.value
[admin, support, help, root, webmaster, administrator, mod, moderator]

# events[].return_value.value
[admin, support, help, root, webmaster, administrator, mod, moderator]

# events[].return_value.value
[admin, support, help, root, webmaster, administrator, mod, moderator]

# events[].return_value.value
[admin, support, help, root, webmaster, administrator, mod, moderator]

# events[].parameters[].value
  [1m[36mSetting Load (1.7ms)[0m  [1m[34mSELECT "settings".* FROM "settings" WHERE (thing_type  (...146 more characters)

# events[].sql_query.sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].sql_query.normalized_sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].parameters[].value
  [1m[36mAccount Create (2.8ms)[0m  [1m[32mINSERT INTO "accounts" ("username", "private_key", " (...2547 more characters)

# events[].sql_query.sql
INSERT INTO "accounts" ("username", "private_key", "public_key", "created_at", "updated_at", "last_webfingered_at", "discoverable") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "accounts" ("username", "private_key", "public_key", "created_at", "updated_at", "last_webfingered_at", "discoverable") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"

# events[].parameters[].value
  [1m[36mUserRole Load (1.6ms)[0m  [1m[34mSELECT "user_roles".* FROM "user_roles" WHERE "user_r (...58 more characters)

# events[].sql_query.sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mUserRole Load (1.2ms)[0m  [1m[34mSELECT "user_roles".* FROM "user_roles" WHERE "user_r (...58 more characters)

# events[].sql_query.sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mUser Exists? (2.5ms)[0m  [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $ (...67 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mSetting Load (1.9ms)[0m  [1m[34mSELECT "settings".* FROM "settings" WHERE (thing_type  (...145 more characters)

# events[].sql_query.sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].sql_query.normalized_sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].parameters[].value
  [1m[36mUser Create (1.1ms)[0m  [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at (...408 more characters)

# events[].sql_query.sql
INSERT INTO "users" ("email", "created_at", "updated_at", "encrypted_password", "confirmed_at", "account_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "users" ("email", "created_at", "updated_at", "encrypted_password", "confirmed_at", "account_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.8ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mAccount Load (0.9ms)[0m  [1m[34mSELECT "accounts"."id", "accounts"."username", "accoun (...1340 more characters)

# events[].parameters[].value
[active_model_serializers]   [1m[36mUser Load (0.7ms)[0m  [1m[34mSELECT "users"."id", "users"." (...1002 more characters)

# events[].parameters[].value
[active_model_serializers]   [1m[36mUserIp Load (0.8ms)[0m  [1m[34mSELECT "user_ips".* FROM "us (...123 more characters)

# events[].sql_query.sql
SELECT "user_ips".* FROM "user_ips" WHERE "user_ips"."user_id" = $1 ORDER BY "user_ips"."user_id" ASC LIMIT $2

# events[].sql_query.normalized_sql
SELECT "user_ips".* FROM "user_ips" WHERE "user_ips"."user_id" = $1 ORDER BY "user_ips"."user_id" ASC LIMIT $2

# events[].parameters[].value
[active_model_serializers]   [1m[36mUserRole Load (0.6ms)[0m  [1m[34mSELECT "user_roles".* FROM (...85 more characters)

# events[].sql_query.sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# events[].parameters[].value
[active_model_serializers]   [1m[36mUserInviteRequest Load (0.6ms)[0m  [1m[34mSELECT "user_invi (...136 more characters)

# events[].parameters[].value
[active_model_serializers]   [1m[36mUserIp Load (0.7ms)[0m  [1m[34mSELECT "user_ips".* FROM "us (...66 more characters)

# events[].sql_query.sql
SELECT "user_ips".* FROM "user_ips" WHERE "user_ips"."user_id" = $1

# events[].sql_query.normalized_sql
SELECT "user_ips".* FROM "user_ips" WHERE "user_ips"."user_id" = $1

# events[].parameters[].value
[active_model_serializers]   [1m[36mAccountStat Load (0.7ms)[0m  [1m[34mSELECT "account_stats". (...359 more characters)

# events[].parameters[].value
[active_model_serializers]   [1m[36mSetting Load (0.6ms)[0m  [1m[34mSELECT "settings".* FROM "s (...195 more characters)

# events[].sql_query.sql
SELECT "settings".* FROM "settings" WHERE "settings"."thing_type" = $1 AND "settings"."thing_id" = $2 AND "settings"."var" = $3 LIMIT $4

# events[].sql_query.normalized_sql
SELECT "settings".* FROM "settings" WHERE "settings"."thing_type" = $1 AND "settings"."thing_id" = $2 AND "settings"."var" = $3 LIMIT $4

# events[].parameters[].value
[active_model_serializers]   [1m[36mSetting Load (1.8ms)[0m  [1m[34mSELECT "settings".* FROM "s (...159 more characters)

# events[].sql_query.sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].sql_query.normalized_sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].parameters[].value
[active_model_serializers]   [1m[36mSetting Load (1.2ms)[0m  [1m[34mSELECT "settings".* FROM "s (...161 more characters)

# events[].sql_query.sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].sql_query.normalized_sql
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# events[].parameters[].value
  [1m[35m (1.4ms)[0m  [1m[34mSELECT "webhooks"."id" FROM "webhooks" WHERE "webhooks"."enabled"  (...68 more characters)

# events[].sql_query.sql
SELECT "webhooks"."id" FROM "webhooks" WHERE "webhooks"."enabled" = $1 AND ('account.created' = ANY(events))

# events[].sql_query.normalized_sql
SELECT "webhooks"."id" FROM "webhooks" WHERE "webhooks"."enabled" = $1 AND ($2 = ANY(events))

# events[].parameters[].value
  [1m[36mTRANSACTION (2.3ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.9ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.7ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.8ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.5ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mUser Load (0.6ms)[0m  [1m[34mSELECT "users"."id", "users"."email", "users"."created_at (...946 more characters)

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.5ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.5ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.5ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.5ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.4ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.5ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.4ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (1.5ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (1.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.9ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mUser Update (1.5ms)[0m  [1m[33mUPDATE "users" SET "updated_at" = $1, "current_sign_in_ (...229 more characters)

# events[].sql_query.sql
UPDATE "users" SET "updated_at" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3 WHERE "users"."id" = $4

# events[].sql_query.normalized_sql
UPDATE "users" SET "updated_at" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3 WHERE "users"."id" = $4

# events[].parameters[].value
  [1m[36mTRANSACTION (0.8ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (1.0ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.6ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.5ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.5ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.7ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.5ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.5ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...187 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 AND "oauth_access_tokens"."id" != $2 LIMIT $3

# events[].sql_query.normalized_sql
SELECT $4 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 AND "oauth_access_tokens"."id" != $2 LIMIT $3

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Update (0.8ms)[0m  [1m[33mUPDATE "oauth_access_tokens" SET "la (...176 more characters)

# events[].sql_query.sql
UPDATE "oauth_access_tokens" SET "last_used_at" = $1, "last_used_ip" = $2 WHERE "oauth_access_tokens"."id" = $3

# events[].sql_query.normalized_sql
UPDATE "oauth_access_tokens" SET "last_used_at" = $1, "last_used_ip" = $2 WHERE "oauth_access_tokens"."id" = $3

# events[].parameters[].value
  [1m[36mTRANSACTION (0.6ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.6ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mAccount Load (0.7ms)[0m  [1m[34mSELECT "accounts"."id", "accounts"."username", "accoun (...1340 more characters)

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.5ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.6ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.5ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.4ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (1.2ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (1.4ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (1.0ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (1.0ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (1.7ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (1.1ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (1.2ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.8ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (1.7ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (3.1ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (1.1ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.6ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.6ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.7ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.7ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.6ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mTRANSACTION (0.6ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.9ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.9ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].sql_query.sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"bookmarks"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.normalized_sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = $1::regclass
   AND a.attnum > $2 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].parameters[].value
        def self.page(num = nil)
          per_page = max_per_page && (default_per_page > max_per_pa (...264 more characters)

# events[].parameters[].value
        def self.page(num = nil)
          per_page = max_per_page && (default_per_page > max_per_pa (...264 more characters)

# events[].sql_query.sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"statuses"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.normalized_sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = $1::regclass
   AND a.attnum > $2 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"statuses"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].sql_query.normalized_sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, $1) idx
           FROM pg_index
          WHERE indrelid = $2::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].parameters[].value
  [1m[35mSQL (30.0ms)[0m  [1m[34mSELECT "bookmarks"."id" AS t0_r0, "bookmarks"."account_id" AS  (...1159 more characters)

# events[].sql_query.sql
SELECT "bookmarks"."id" AS t0_r0, "bookmarks"."account_id" AS t0_r1, "bookmarks"."status_id" AS t0_r2, "bookmarks"."created_at" AS t0_r3, "bookmarks"."updated_at" AS t0_r4, "statuses"."id" AS t1_r0, "statuses"."uri" AS t1_r1, "statuses"."text" AS t1_r2, "statuses"."created_at" AS t1_r3, "statuses"."updated_at" AS t1_r4, "statuses"."in_reply_to_id" AS t1_r5, "statuses"."reblog_of_id" AS t1_r6, "statuses"."url" AS t1_r7, "statuses"."sensitive" AS t1_r8, "statuses"."visibility" AS t1_r9, "statuses"."spoiler_text" AS t1_r10, "statuses"."reply" AS t1_r11, "statuses"."language" AS t1_r12, "statuses"."conversation_id" AS t1_r13, "statuses"."local" AS t1_r14, "statuses"."account_id" AS t1_r15, "statuses"."application_id" AS t1_r16, "statuses"."in_reply_to_account_id" AS t1_r17, "statuses"."poll_id" AS t1_r18, "statuses"."deleted_at" AS t1_r19, "statuses"."edited_at" AS t1_r20, "statuses"."trendable" AS t1_r21, "statuses"."ordered_media_attachment_ids" AS t1_r22 FROM "bookmarks" INNER JOIN "statuses" ON "statuses"."deleted_at" IS NULL AND "statuses"."id" = "bookmarks"."status_id" WHERE "bookmarks"."account_id" = $1 ORDER BY "bookmarks"."id" DESC LIMIT $2

# events[].sql_query.normalized_sql
SELECT "bookmarks"."id" AS t0_r0, "bookmarks"."account_id" AS t0_r1, "bookmarks"."status_id" AS t0_r2, "bookmarks"."created_at" AS t0_r3, "bookmarks"."updated_at" AS t0_r4, "statuses"."id" AS t1_r0, "statuses"."uri" AS t1_r1, "statuses"."text" AS t1_r2, "statuses"."created_at" AS t1_r3, "statuses"."updated_at" AS t1_r4, "statuses"."in_reply_to_id" AS t1_r5, "statuses"."reblog_of_id" AS t1_r6, "statuses"."url" AS t1_r7, "statuses"."sensitive" AS t1_r8, "statuses"."visibility" AS t1_r9, "statuses"."spoiler_text" AS t1_r10, "statuses"."reply" AS t1_r11, "statuses"."language" AS t1_r12, "statuses"."conversation_id" AS t1_r13, "statuses"."local" AS t1_r14, "statuses"."account_id" AS t1_r15, "statuses"."application_id" AS t1_r16, "statuses"."in_reply_to_account_id" AS t1_r17, "statuses"."poll_id" AS t1_r18, "statuses"."deleted_at" AS t1_r19, "statuses"."edited_at" AS t1_r20, "statuses"."trendable" AS t1_r21, "statuses"."ordered_media_attachment_ids" AS t1_r22 FROM "bookmarks" INNER JOIN "statuses" ON "statuses"."deleted_at" IS NULL AND "statuses"."id" = "bookmarks"."status_id" WHERE "bookmarks"."account_id" = $1 ORDER BY "bookmarks"."id" DESC LIMIT $2

# events[].sql_query.sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"bookmarks"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].sql_query.normalized_sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, $1) idx
           FROM pg_index
          WHERE indrelid = $2::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].parameters[].value
  [1m[36mTRANSACTION (1.0ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (0.7ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (0.6ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.5ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].sql_query.sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"custom_filters"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.normalized_sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = $1::regclass
   AND a.attnum > $2 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"custom_filter_keywords"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.normalized_sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = $1::regclass
   AND a.attnum > $2 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"custom_filters"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].sql_query.normalized_sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, $1) idx
           FROM pg_index
          WHERE indrelid = $2::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].parameters[].value
  [1m[35mSQL (6.0ms)[0m  [1m[34mSELECT "custom_filter_keywords"."id" AS t0_r0, "custom_filter_k (...797 more characters)

# events[].sql_query.sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"custom_filter_keywords"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].sql_query.normalized_sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, $1) idx
           FROM pg_index
          WHERE indrelid = $2::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].sql_query.sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"custom_filter_statuses"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.normalized_sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = $1::regclass
   AND a.attnum > $2 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].parameters[].value
  [1m[35mSQL (4.4ms)[0m  [1m[34mSELECT "custom_filter_statuses"."id" AS t0_r0, "custom_filter_s (...751 more characters)

# events[].sql_query.sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"custom_filter_statuses"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].sql_query.normalized_sql
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, $1) idx
           FROM pg_index
          WHERE indrelid = $2::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# events[].sql_query.sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"favourites"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.normalized_sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = $1::regclass
   AND a.attnum > $2 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"conversation_mutes"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.normalized_sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = $1::regclass
   AND a.attnum > $2 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"status_pins"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].sql_query.normalized_sql
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = $1::regclass
   AND a.attnum > $2 AND NOT a.attisdropped
 ORDER BY a.attnum

# events[].parameters[].value
  [1m[36mTRANSACTION (1.4ms)[0m  [1m[35mSAVEPOINT active_record_1[0m

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Exists? (1.0ms)[0m  [1m[34mSELECT 1 AS one FROM "oauth_access_ (...136 more characters)

# events[].sql_query.sql
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].sql_query.normalized_sql
SELECT $3 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# events[].parameters[].value
  [1m[36mDoorkeeper::AccessToken Create (1.1ms)[0m  [1m[32mINSERT INTO "oauth_access_tokens" (" (...252 more characters)

# events[].sql_query.sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# events[].parameters[].value
  [1m[36mTRANSACTION (0.9ms)[0m  [1m[35mRELEASE SAVEPOINT active_record_1[0m

# events[].parameters[].value
Completed 200 OK in 454ms (Views: 3.4ms | ActiveRecord: 200.9ms | Allocations: 260121)

# classMap[].children[].name
SELECT "user_roles".* FROM "user_roles" WHERE "user_roles"."id" = $1 LIMIT $2

# classMap[].children[].name
SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2

# classMap[].children[].name
SELECT 1 AS one FROM "accounts" WHERE LOWER("accounts"."username") = 'trista_durgan1' AND LOWER("accounts"."domain") IS NULL LIMIT $1

# classMap[].children[].name
SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = $1 ORDER BY "settings"."id" ASC LIMIT $2

# classMap[].children[].name
INSERT INTO "accounts" ("username", "private_key", "public_key", "created_at", "updated_at", "last_webfingered_at", "discoverable") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"

# classMap[].children[].name
INSERT INTO "users" ("email", "created_at", "updated_at", "encrypted_password", "confirmed_at", "account_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"

# classMap[].children[].name
SELECT "user_ips".* FROM "user_ips" WHERE "user_ips"."user_id" = $1 ORDER BY "user_ips"."user_id" ASC LIMIT $2

# classMap[].children[].name
SELECT "user_ips".* FROM "user_ips" WHERE "user_ips"."user_id" = $1

# classMap[].children[].name
SELECT "settings".* FROM "settings" WHERE "settings"."thing_type" = $1 AND "settings"."thing_id" = $2 AND "settings"."var" = $3 LIMIT $4

# classMap[].children[].name
SELECT "webhooks"."id" FROM "webhooks" WHERE "webhooks"."enabled" = $1 AND ('account.created' = ANY(events))

# classMap[].children[].name
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2

# classMap[].children[].name
INSERT INTO "oauth_access_tokens" ("token", "created_at", "scopes", "resource_owner_id") VALUES ($1, $2, $3, $4) RETURNING "id"

# classMap[].children[].name
UPDATE "users" SET "updated_at" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3 WHERE "users"."id" = $4

# classMap[].children[].name
SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 AND "oauth_access_tokens"."id" != $2 LIMIT $3

# classMap[].children[].name
UPDATE "oauth_access_tokens" SET "last_used_at" = $1, "last_used_ip" = $2 WHERE "oauth_access_tokens"."id" = $3

# classMap[].children[].name
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"bookmarks"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# classMap[].children[].name
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"statuses"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# classMap[].children[].name
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"statuses"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# classMap[].children[].name
SELECT "bookmarks"."id" AS t0_r0, "bookmarks"."account_id" AS t0_r1, "bookmarks"."status_id" AS t0_r2, "bookmarks"."created_at" AS t0_r3, "bookmarks"."updated_at" AS t0_r4, "statuses"."id" AS t1_r0, "statuses"."uri" AS t1_r1, "statuses"."text" AS t1_r2, "statuses"."created_at" AS t1_r3, "statuses"."updated_at" AS t1_r4, "statuses"."in_reply_to_id" AS t1_r5, "statuses"."reblog_of_id" AS t1_r6, "statuses"."url" AS t1_r7, "statuses"."sensitive" AS t1_r8, "statuses"."visibility" AS t1_r9, "statuses"."spoiler_text" AS t1_r10, "statuses"."reply" AS t1_r11, "statuses"."language" AS t1_r12, "statuses"."conversation_id" AS t1_r13, "statuses"."local" AS t1_r14, "statuses"."account_id" AS t1_r15, "statuses"."application_id" AS t1_r16, "statuses"."in_reply_to_account_id" AS t1_r17, "statuses"."poll_id" AS t1_r18, "statuses"."deleted_at" AS t1_r19, "statuses"."edited_at" AS t1_r20, "statuses"."trendable" AS t1_r21, "statuses"."ordered_media_attachment_ids" AS t1_r22 FROM "bookmarks" INNER JOIN "statuses" ON "statuses"."deleted_at" IS NULL AND "statuses"."id" = "bookmarks"."status_id" WHERE "bookmarks"."account_id" = $1 ORDER BY "bookmarks"."id" DESC LIMIT $2

# classMap[].children[].name
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"bookmarks"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# classMap[].children[].name
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"custom_filters"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# classMap[].children[].name
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"custom_filter_keywords"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# classMap[].children[].name
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"custom_filters"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# classMap[].children[].name
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"custom_filter_keywords"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# classMap[].children[].name
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"custom_filter_statuses"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# classMap[].children[].name
SELECT a.attname
  FROM (
         SELECT indrelid, indkey, generate_subscripts(indkey, 1) idx
           FROM pg_index
          WHERE indrelid = '"custom_filter_statuses"'::regclass
            AND indisprimary
       ) i
  JOIN pg_attribute a
    ON a.attrelid = i.indrelid
   AND a.attnum = i.indkey[i.idx]
 ORDER BY i.idx

# classMap[].children[].name
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"favourites"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# classMap[].children[].name
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"conversation_mutes"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# classMap[].children[].name
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
       pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
       c.collname, col_description(a.attrelid, a.attnum) AS comment
  FROM pg_attribute a
  LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  LEFT JOIN pg_type t ON a.atttypid = t.oid
  LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
 WHERE a.attrelid = '"status_pins"'::regclass
   AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum

# metadata.name
Api::V1::BookmarksController GET #index with token with read scope and valid resource owner does not add pagination headers if not necessary