From 78a36005abfe67923031df94ccb73706dd56b745 Mon Sep 17 00:00:00 2001 From: Terri Cain Date: Thu, 13 Jun 2024 20:14:57 +0100 Subject: [PATCH 1/3] Added generated MySQL catalog files --- internal/engine/dolphin/information_schema.go | 10328 ++++++++++++++ internal/engine/dolphin/mysql_catalog.go | 2038 +++ internal/engine/dolphin/performance_schema.go | 8577 ++++++++++++ internal/engine/dolphin/sys_schema.go | 11229 ++++++++++++++++ 4 files changed, 32172 insertions(+) create mode 100644 internal/engine/dolphin/information_schema.go create mode 100644 internal/engine/dolphin/mysql_catalog.go create mode 100644 internal/engine/dolphin/performance_schema.go create mode 100644 internal/engine/dolphin/sys_schema.go diff --git a/internal/engine/dolphin/information_schema.go b/internal/engine/dolphin/information_schema.go new file mode 100644 index 0000000000..194cb4e131 --- /dev/null +++ b/internal/engine/dolphin/information_schema.go @@ -0,0 +1,10328 @@ +// Code generated by sqlc-dolphin-gen. DO NOT EDIT. + +package dolphin + +import ( + "github.com/sqlc-dev/sqlc/internal/sql/ast" + "github.com/sqlc-dev/sqlc/internal/sql/catalog" +) + +var funcsgenInformationSchema = []*catalog.Function{} + +func genInformationSchema() *catalog.Schema { + s := &catalog.Schema{Name: "information_schema"} + s.Funcs = funcsgenInformationSchema + s.Tables = []*catalog.Table{ + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "ROLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "ROLE_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "IS_DEFAULT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "administrable_role_authorizations", + }, + Columns: []*catalog.Column{ + { + Name: "IS_MANDATORY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "ROLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "ROLE_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "IS_DEFAULT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "applicable_roles", + }, + Columns: []*catalog.Column{ + { + Name: "IS_MANDATORY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "character_sets", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "character_sets", + }, + Columns: []*catalog.Column{ + { + Name: "DEFAULT_COLLATE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "character_sets", + }, + Columns: []*catalog.Column{ + { + Name: "DESCRIPTION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(2048), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "character_sets", + }, + Columns: []*catalog.Column{ + { + Name: "MAXLEN", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "check_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "check_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "check_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "check_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CHECK_CLAUSE", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collations", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collations", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collations", + }, + Columns: []*catalog.Column{ + { + Name: "ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collations", + }, + Columns: []*catalog.Column{ + { + Name: "IS_DEFAULT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collations", + }, + Columns: []*catalog.Column{ + { + Name: "IS_COMPILED", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collations", + }, + Columns: []*catalog.Column{ + { + Name: "SORTLEN", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collations", + }, + Columns: []*catalog.Column{ + { + Name: "PAD_ATTRIBUTE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collation_character_set_applicability", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "collation_character_set_applicability", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "ORDINAL_POSITION", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_DEFAULT", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "IS_NULLABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_TYPE", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_MAXIMUM_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_OCTET_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "NUMERIC_PRECISION", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "NUMERIC_SCALE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "DATETIME_PRECISION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_TYPE", + Type: ast.TypeName{Name: "mediumtext"}, + IsNotNull: true, + Length: toPointer(16777215), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_KEY", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "EXTRA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "PRIVILEGES", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(154), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_COMMENT", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "GENERATION_EXPRESSION", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns", + }, + Columns: []*catalog.Column{ + { + Name: "SRS_ID", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE_ATTRIBUTE", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "columns_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "SECONDARY_ENGINE_ATTRIBUTE", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(170), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "PRIVILEGE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_statistics", + }, + Columns: []*catalog.Column{ + { + Name: "SCHEMA_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_statistics", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_statistics", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "column_statistics", + }, + Columns: []*catalog.Column{ + { + Name: "HISTOGRAM", + Type: ast.TypeName{Name: "json"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "enabled_roles", + }, + Columns: []*catalog.Column{ + { + Name: "ROLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "enabled_roles", + }, + Columns: []*catalog.Column{ + { + Name: "ROLE_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "enabled_roles", + }, + Columns: []*catalog.Column{ + { + Name: "IS_DEFAULT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "enabled_roles", + }, + Columns: []*catalog.Column{ + { + Name: "IS_MANDATORY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "engines", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "engines", + }, + Columns: []*catalog.Column{ + { + Name: "SUPPORT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(2), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "engines", + }, + Columns: []*catalog.Column{ + { + Name: "COMMENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(26), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "engines", + }, + Columns: []*catalog.Column{ + { + Name: "TRANSACTIONS", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "engines", + }, + Columns: []*catalog.Column{ + { + Name: "XA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "engines", + }, + Columns: []*catalog.Column{ + { + Name: "SAVEPOINTS", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "DEFINER", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(288), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "TIME_ZONE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_BODY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_DEFINITION", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "EXECUTE_AT", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "INTERVAL_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "INTERVAL_FIELD", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(18), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "SQL_MODE", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(520), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "STARTS", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "ENDS", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "STATUS", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "ON_COMPLETION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(12), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "CREATED", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "LAST_ALTERED", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "LAST_EXECUTED", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_COMMENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(2048), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "ORIGINATOR", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_CLIENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_CONNECTION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "events", + }, + Columns: []*catalog.Column{ + { + Name: "DATABASE_COLLATION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "FILE_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "FILE_NAME", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "FILE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "TABLESPACE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(268), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "LOGFILE_GROUP_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "LOGFILE_GROUP_NUMBER", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "FULLTEXT_KEYS", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "DELETED_ROWS", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "UPDATE_COUNT", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "FREE_EXTENTS", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "TOTAL_EXTENTS", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "EXTENT_SIZE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "INITIAL_SIZE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "MAXIMUM_SIZE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "AUTOEXTEND_SIZE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "CREATION_TIME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "LAST_UPDATE_TIME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "LAST_ACCESS_TIME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "RECOVER_TIME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "TRANSACTION_COUNTER", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "VERSION", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "ROW_FORMAT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ROWS", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "AVG_ROW_LENGTH", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_LENGTH", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "MAX_DATA_LENGTH", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_LENGTH", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_FREE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "CREATE_TIME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "UPDATE_TIME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "CHECK_TIME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "CHECKSUM", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "STATUS", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "files", + }, + Columns: []*catalog.Column{ + { + Name: "EXTRA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "POOL_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "BLOCK_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_NUMBER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "FLUSH_TYPE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "FIX_COUNT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "IS_HASHED", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "NEWEST_MODIFICATION", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "OLDEST_MODIFICATION", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "ACCESS_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(341), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(341), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "NUMBER_RECORDS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "COMPRESSED_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "IO_FIX", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "IS_OLD", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "FREE_PAGE_CLOCK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page", + }, + Columns: []*catalog.Column{ + { + Name: "IS_STALE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "POOL_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "LRU_POSITION", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_NUMBER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "FLUSH_TYPE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "FIX_COUNT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "IS_HASHED", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "NEWEST_MODIFICATION", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "OLDEST_MODIFICATION", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "ACCESS_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(341), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(341), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "NUMBER_RECORDS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "COMPRESSED_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "COMPRESSED", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "IO_FIX", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "IS_OLD", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_page_lru", + }, + Columns: []*catalog.Column{ + { + Name: "FREE_PAGE_CLOCK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "POOL_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "POOL_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "FREE_BUFFERS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "DATABASE_PAGES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "OLD_DATABASE_PAGES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "MODIFIED_DATABASE_PAGES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PENDING_DECOMPRESS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PENDING_READS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PENDING_FLUSH_LRU", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PENDING_FLUSH_LIST", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PAGES_MADE_YOUNG", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PAGES_NOT_MADE_YOUNG", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PAGES_MADE_YOUNG_RATE", + Type: ast.TypeName{Name: "float"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PAGES_MADE_NOT_YOUNG_RATE", + Type: ast.TypeName{Name: "float"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "NUMBER_PAGES_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "NUMBER_PAGES_CREATED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "NUMBER_PAGES_WRITTEN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PAGES_READ_RATE", + Type: ast.TypeName{Name: "float"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PAGES_CREATE_RATE", + Type: ast.TypeName{Name: "float"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "PAGES_WRITTEN_RATE", + Type: ast.TypeName{Name: "float"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "NUMBER_PAGES_GET", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "HIT_RATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "YOUNG_MAKE_PER_THOUSAND_GETS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "NOT_YOUNG_MAKE_PER_THOUSAND_GETS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "NUMBER_PAGES_READ_AHEAD", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "NUMBER_READ_AHEAD_EVICTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "READ_AHEAD_RATE", + Type: ast.TypeName{Name: "float"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "READ_AHEAD_EVICTED_RATE", + Type: ast.TypeName{Name: "float"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "LRU_IO_TOTAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "LRU_IO_CURRENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "UNCOMPRESS_TOTAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_buffer_pool_stats", + }, + Columns: []*catalog.Column{ + { + Name: "UNCOMPRESS_CURRENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cached_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE_ID", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cached_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cached_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "N_CACHED_PAGES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp", + }, + Columns: []*catalog.Column{ + { + Name: "page_size", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp", + }, + Columns: []*catalog.Column{ + { + Name: "compress_ops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp", + }, + Columns: []*catalog.Column{ + { + Name: "compress_ops_ok", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp", + }, + Columns: []*catalog.Column{ + { + Name: "compress_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp", + }, + Columns: []*catalog.Column{ + { + Name: "uncompress_ops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp", + }, + Columns: []*catalog.Column{ + { + Name: "uncompress_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem", + }, + Columns: []*catalog.Column{ + { + Name: "page_size", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem", + }, + Columns: []*catalog.Column{ + { + Name: "buffer_pool_instance", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem", + }, + Columns: []*catalog.Column{ + { + Name: "pages_used", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem", + }, + Columns: []*catalog.Column{ + { + Name: "pages_free", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem", + }, + Columns: []*catalog.Column{ + { + Name: "relocation_ops", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem", + }, + Columns: []*catalog.Column{ + { + Name: "relocation_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem_reset", + }, + Columns: []*catalog.Column{ + { + Name: "page_size", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem_reset", + }, + Columns: []*catalog.Column{ + { + Name: "buffer_pool_instance", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem_reset", + }, + Columns: []*catalog.Column{ + { + Name: "pages_used", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem_reset", + }, + Columns: []*catalog.Column{ + { + Name: "pages_free", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem_reset", + }, + Columns: []*catalog.Column{ + { + Name: "relocation_ops", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmpmem_reset", + }, + Columns: []*catalog.Column{ + { + Name: "relocation_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index", + }, + Columns: []*catalog.Column{ + { + Name: "database_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index", + }, + Columns: []*catalog.Column{ + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index", + }, + Columns: []*catalog.Column{ + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index", + }, + Columns: []*catalog.Column{ + { + Name: "compress_ops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index", + }, + Columns: []*catalog.Column{ + { + Name: "compress_ops_ok", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index", + }, + Columns: []*catalog.Column{ + { + Name: "compress_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index", + }, + Columns: []*catalog.Column{ + { + Name: "uncompress_ops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index", + }, + Columns: []*catalog.Column{ + { + Name: "uncompress_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index_reset", + }, + Columns: []*catalog.Column{ + { + Name: "database_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index_reset", + }, + Columns: []*catalog.Column{ + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index_reset", + }, + Columns: []*catalog.Column{ + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index_reset", + }, + Columns: []*catalog.Column{ + { + Name: "compress_ops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index_reset", + }, + Columns: []*catalog.Column{ + { + Name: "compress_ops_ok", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index_reset", + }, + Columns: []*catalog.Column{ + { + Name: "compress_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index_reset", + }, + Columns: []*catalog.Column{ + { + Name: "uncompress_ops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_per_index_reset", + }, + Columns: []*catalog.Column{ + { + Name: "uncompress_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_reset", + }, + Columns: []*catalog.Column{ + { + Name: "page_size", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_reset", + }, + Columns: []*catalog.Column{ + { + Name: "compress_ops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_reset", + }, + Columns: []*catalog.Column{ + { + Name: "compress_ops_ok", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_reset", + }, + Columns: []*catalog.Column{ + { + Name: "compress_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_reset", + }, + Columns: []*catalog.Column{ + { + Name: "uncompress_ops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_cmp_reset", + }, + Columns: []*catalog.Column{ + { + Name: "uncompress_time", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_columns", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_columns", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_columns", + }, + Columns: []*catalog.Column{ + { + Name: "POS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_columns", + }, + Columns: []*catalog.Column{ + { + Name: "MTYPE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_columns", + }, + Columns: []*catalog.Column{ + { + Name: "PRTYPE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_columns", + }, + Columns: []*catalog.Column{ + { + Name: "LEN", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_columns", + }, + Columns: []*catalog.Column{ + { + Name: "HAS_DEFAULT", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_columns", + }, + Columns: []*catalog.Column{ + { + Name: "DEFAULT_VALUE", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_datafiles", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_datafiles", + }, + Columns: []*catalog.Column{ + { + Name: "PATH", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_fields", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_ID", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_fields", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_fields", + }, + Columns: []*catalog.Column{ + { + Name: "POS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign", + }, + Columns: []*catalog.Column{ + { + Name: "ID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(129), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign", + }, + Columns: []*catalog.Column{ + { + Name: "FOR_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(129), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign", + }, + Columns: []*catalog.Column{ + { + Name: "REF_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(129), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign", + }, + Columns: []*catalog.Column{ + { + Name: "N_COLS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign", + }, + Columns: []*catalog.Column{ + { + Name: "TYPE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign_cols", + }, + Columns: []*catalog.Column{ + { + Name: "ID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(129), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign_cols", + }, + Columns: []*catalog.Column{ + { + Name: "FOR_COL_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign_cols", + }, + Columns: []*catalog.Column{ + { + Name: "REF_COL_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_foreign_cols", + }, + Columns: []*catalog.Column{ + { + Name: "POS", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_being_deleted", + }, + Columns: []*catalog.Column{ + { + Name: "DOC_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_config", + }, + Columns: []*catalog.Column{ + { + Name: "KEY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_config", + }, + Columns: []*catalog.Column{ + { + Name: "VALUE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_default_stopword", + }, + Columns: []*catalog.Column{ + { + Name: "value", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_deleted", + }, + Columns: []*catalog.Column{ + { + Name: "DOC_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_cache", + }, + Columns: []*catalog.Column{ + { + Name: "WORD", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(112), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_cache", + }, + Columns: []*catalog.Column{ + { + Name: "FIRST_DOC_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_cache", + }, + Columns: []*catalog.Column{ + { + Name: "LAST_DOC_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_cache", + }, + Columns: []*catalog.Column{ + { + Name: "DOC_COUNT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_cache", + }, + Columns: []*catalog.Column{ + { + Name: "DOC_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_cache", + }, + Columns: []*catalog.Column{ + { + Name: "POSITION", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_table", + }, + Columns: []*catalog.Column{ + { + Name: "WORD", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(112), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_table", + }, + Columns: []*catalog.Column{ + { + Name: "FIRST_DOC_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_table", + }, + Columns: []*catalog.Column{ + { + Name: "LAST_DOC_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_table", + }, + Columns: []*catalog.Column{ + { + Name: "DOC_COUNT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_table", + }, + Columns: []*catalog.Column{ + { + Name: "DOC_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_ft_index_table", + }, + Columns: []*catalog.Column{ + { + Name: "POSITION", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "TYPE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "N_FIELDS", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_NO", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "MERGE_THRESHOLD", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "SUBSYSTEM", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "COUNT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "MAX_COUNT", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "MIN_COUNT", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "AVG_COUNT", + Type: ast.TypeName{Name: "float"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "COUNT_RESET", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "MAX_COUNT_RESET", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "MIN_COUNT_RESET", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "AVG_COUNT_RESET", + Type: ast.TypeName{Name: "float"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "TIME_ENABLED", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "TIME_DISABLED", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "TIME_ELAPSED", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "TIME_RESET", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "STATUS", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "COMMENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_session_temp_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "ID", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_session_temp_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_session_temp_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "PATH", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1333), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_session_temp_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_session_temp_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "STATE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_session_temp_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "PURPOSE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(218), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "FLAG", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "N_COLS", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "ROW_FORMAT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "ZIP_PAGE_SIZE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "INSTANT_COLS", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tables", + }, + Columns: []*catalog.Column{ + { + Name: "TOTAL_ROW_VERSIONS", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(218), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "FLAG", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "ROW_FORMAT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(7), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_SIZE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "ZIP_PAGE_SIZE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "FS_BLOCK_SIZE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "FILE_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "ALLOCATED_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "AUTOEXTEND_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "SERVER_VERSION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE_VERSION", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "ENCRYPTION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces", + }, + Columns: []*catalog.Column{ + { + Name: "STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces_brief", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces_brief", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(268), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces_brief", + }, + Columns: []*catalog.Column{ + { + Name: "PATH", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces_brief", + }, + Columns: []*catalog.Column{ + { + Name: "FLAG", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablespaces_brief", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(7), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "STATS_INITIALIZED", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "NUM_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "CLUST_INDEX_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "OTHER_INDEX_SIZE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "MODIFIED_COUNTER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "AUTOINC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_tablestats", + }, + Columns: []*catalog.Column{ + { + Name: "REF_COUNT", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_temp_table_info", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_temp_table_info", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_temp_table_info", + }, + Columns: []*catalog.Column{ + { + Name: "N_COLS", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_temp_table_info", + }, + Columns: []*catalog.Column{ + { + Name: "SPACE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_state", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_requested_lock_id", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(35), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_wait_started", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_weight", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_mysql_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(341), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_operation_state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_tables_in_use", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_tables_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_lock_structs", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_lock_memory_bytes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_concurrency_tickets", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_isolation_level", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(5), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_unique_checks", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_foreign_key_checks", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_last_foreign_key_error", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(85), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_adaptive_hash_latched", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_adaptive_hash_timeout", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_is_read_only", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_autocommit_non_locking", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_trx", + }, + Columns: []*catalog.Column{ + { + Name: "trx_schedule_weight", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_virtual", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_virtual", + }, + Columns: []*catalog.Column{ + { + Name: "POS", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "innodb_virtual", + }, + Columns: []*catalog.Column{ + { + Name: "BASE_POS", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "keywords", + }, + Columns: []*catalog.Column{ + { + Name: "WORD", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "keywords", + }, + Columns: []*catalog.Column{ + { + Name: "RESERVED", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "ORDINAL_POSITION", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "POSITION_IN_UNIQUE_CONSTRAINT", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "REFERENCED_TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "REFERENCED_TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "key_column_usage", + }, + Columns: []*catalog.Column{ + { + Name: "REFERENCED_COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "optimizer_trace", + }, + Columns: []*catalog.Column{ + { + Name: "QUERY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21845), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "optimizer_trace", + }, + Columns: []*catalog.Column{ + { + Name: "TRACE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21845), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "optimizer_trace", + }, + Columns: []*catalog.Column{ + { + Name: "MISSING_BYTES_BEYOND_MAX_MEM_SIZE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "optimizer_trace", + }, + Columns: []*catalog.Column{ + { + Name: "INSUFFICIENT_PRIVILEGES", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "ORDINAL_POSITION", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "PARAMETER_MODE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "PARAMETER_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_TYPE", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_MAXIMUM_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_OCTET_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "NUMERIC_PRECISION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "NUMERIC_SCALE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "DATETIME_PRECISION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "DTD_IDENTIFIER", + Type: ast.TypeName{Name: "mediumtext"}, + IsNotNull: true, + Length: toPointer(16777215), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "parameters", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "PARTITION_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "SUBPARTITION_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "PARTITION_ORDINAL_POSITION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "SUBPARTITION_ORDINAL_POSITION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "PARTITION_METHOD", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(13), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "SUBPARTITION_METHOD", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(13), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "PARTITION_EXPRESSION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(2048), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "SUBPARTITION_EXPRESSION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(2048), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "PARTITION_DESCRIPTION", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ROWS", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "AVG_ROW_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "MAX_DATA_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_FREE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "CREATE_TIME", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "UPDATE_TIME", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "CHECK_TIME", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "CHECKSUM", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "PARTITION_COMMENT", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "NODEGROUP", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "partitions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLESPACE_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(268), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_VERSION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_STATUS", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(26), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_TYPE_VERSION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_LIBRARY", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_LIBRARY_VERSION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_AUTHOR", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_DESCRIPTION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21845), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "PLUGIN_LICENSE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(26), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "plugins", + }, + Columns: []*catalog.Column{ + { + Name: "LOAD_OPTION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(10), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(87), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "DB", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "COMMAND", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(5), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "TIME", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "INFO", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(21845), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "QUERY_ID", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "SEQ", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "STATE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(10), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "DURATION", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "CPU_USER", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "CPU_SYSTEM", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "CONTEXT_VOLUNTARY", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "CONTEXT_INVOLUNTARY", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "BLOCK_OPS_IN", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "BLOCK_OPS_OUT", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "MESSAGES_SENT", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "MESSAGES_RECEIVED", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_FAULTS_MAJOR", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "PAGE_FAULTS_MINOR", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "SWAPS", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "SOURCE_FUNCTION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(10), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "SOURCE_FILE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "profiling", + }, + Columns: []*catalog.Column{ + { + Name: "SOURCE_LINE", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "UNIQUE_CONSTRAINT_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "UNIQUE_CONSTRAINT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "UNIQUE_CONSTRAINT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "MATCH_OPTION", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(7), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "UPDATE_RULE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "DELETE_RULE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "referential_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "REFERENCED_TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "resource_groups", + }, + Columns: []*catalog.Column{ + { + Name: "RESOURCE_GROUP_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "resource_groups", + }, + Columns: []*catalog.Column{ + { + Name: "RESOURCE_GROUP_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "resource_groups", + }, + Columns: []*catalog.Column{ + { + Name: "RESOURCE_GROUP_ENABLED", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "resource_groups", + }, + Columns: []*catalog.Column{ + { + Name: "VCPU_IDS", + Type: ast.TypeName{Name: "blob"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "resource_groups", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_PRIORITY", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTOR", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTOR_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE_HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "PRIVILEGE_TYPE", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(31), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_column_grants", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTOR", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTOR_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE_HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_SCHEMA", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_SCHEMA", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "PRIVILEGE_TYPE", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(27), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_routine_grants", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTOR", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTOR_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE_HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "PRIVILEGE_TYPE", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(98), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "role_table_grants", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_TYPE", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_MAXIMUM_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_OCTET_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "NUMERIC_PRECISION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "NUMERIC_SCALE", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "DATETIME_PRECISION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "DTD_IDENTIFIER", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_BODY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_DEFINITION", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "EXTERNAL_NAME", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "EXTERNAL_LANGUAGE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "PARAMETER_STYLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "IS_DETERMINISTIC", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "SQL_DATA_ACCESS", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(17), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "SQL_PATH", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "SECURITY_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(7), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "CREATED", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "LAST_ALTERED", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "SQL_MODE", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(520), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "ROUTINE_COMMENT", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "DEFINER", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(288), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_CLIENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_CONNECTION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "routines", + }, + Columns: []*catalog.Column{ + { + Name: "DATABASE_COLLATION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata", + }, + Columns: []*catalog.Column{ + { + Name: "CATALOG_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata", + }, + Columns: []*catalog.Column{ + { + Name: "SCHEMA_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata", + }, + Columns: []*catalog.Column{ + { + Name: "DEFAULT_CHARACTER_SET_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata", + }, + Columns: []*catalog.Column{ + { + Name: "DEFAULT_COLLATION_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata", + }, + Columns: []*catalog.Column{ + { + Name: "SQL_PATH", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata", + }, + Columns: []*catalog.Column{ + { + Name: "DEFAULT_ENCRYPTION", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "CATALOG_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "SCHEMA_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schemata_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "OPTIONS", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schema_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schema_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(170), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schema_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schema_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "PRIVILEGE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "schema_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "NON_UNIQUE", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "SEQ_IN_INDEX", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "CARDINALITY", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "SUB_PART", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "PACKED", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "NULLABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "COMMENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_COMMENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(2048), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "IS_VISIBLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "statistics", + }, + Columns: []*catalog.Column{ + { + Name: "EXPRESSION", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_geometry_columns", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_geometry_columns", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_geometry_columns", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_geometry_columns", + }, + Columns: []*catalog.Column{ + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_geometry_columns", + }, + Columns: []*catalog.Column{ + { + Name: "SRS_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(80), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_geometry_columns", + }, + Columns: []*catalog.Column{ + { + Name: "SRS_ID", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_geometry_columns", + }, + Columns: []*catalog.Column{ + { + Name: "GEOMETRY_TYPE_NAME", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_spatial_reference_systems", + }, + Columns: []*catalog.Column{ + { + Name: "SRS_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(80), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_spatial_reference_systems", + }, + Columns: []*catalog.Column{ + { + Name: "SRS_ID", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_spatial_reference_systems", + }, + Columns: []*catalog.Column{ + { + Name: "ORGANIZATION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_spatial_reference_systems", + }, + Columns: []*catalog.Column{ + { + Name: "ORGANIZATION_COORDSYS_ID", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_spatial_reference_systems", + }, + Columns: []*catalog.Column{ + { + Name: "DEFINITION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(4096), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_spatial_reference_systems", + }, + Columns: []*catalog.Column{ + { + Name: "DESCRIPTION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(2048), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_units_of_measure", + }, + Columns: []*catalog.Column{ + { + Name: "UNIT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_units_of_measure", + }, + Columns: []*catalog.Column{ + { + Name: "UNIT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(7), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_units_of_measure", + }, + Columns: []*catalog.Column{ + { + Name: "CONVERSION_FACTOR", + Type: ast.TypeName{Name: "double"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "st_units_of_measure", + }, + Columns: []*catalog.Column{ + { + Name: "DESCRIPTION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "VERSION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "ROW_FORMAT", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(10), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_ROWS", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "AVG_ROW_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "MAX_DATA_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "INDEX_LENGTH", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "DATA_FREE", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "AUTO_INCREMENT", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "CREATE_TIME", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "UPDATE_TIME", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "CHECK_TIME", + Type: ast.TypeName{Name: "datetime"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_COLLATION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "CHECKSUM", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "CREATE_OPTIONS", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(256), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_COMMENT", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tablespaces_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLESPACE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(268), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tablespaces_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE_ATTRIBUTE", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE_ATTRIBUTE", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "tables_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "SECONDARY_ENGINE_ATTRIBUTE", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints", + }, + Columns: []*catalog.Column{ + { + Name: "ENFORCED", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "CONSTRAINT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE_ATTRIBUTE", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_constraints_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "SECONDARY_ENGINE_ATTRIBUTE", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(170), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "PRIVILEGE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "table_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "TRIGGER_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "TRIGGER_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "TRIGGER_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_MANIPULATION", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_OBJECT_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_OBJECT_TABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_ORDER", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_CONDITION", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_STATEMENT", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_ORIENTATION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_TIMING", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_REFERENCE_OLD_TABLE", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_REFERENCE_NEW_TABLE", + Type: ast.TypeName{Name: "varbinary"}, + Length: toPointer(0), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_REFERENCE_OLD_ROW", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "ACTION_REFERENCE_NEW_ROW", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "CREATED", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "SQL_MODE", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(520), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "DEFINER", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(288), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_CLIENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_CONNECTION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "triggers", + }, + Columns: []*catalog.Column{ + { + Name: "DATABASE_COLLATION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "user_attributes", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "user_attributes", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "user_attributes", + }, + Columns: []*catalog.Column{ + { + Name: "ATTRIBUTE", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "user_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "GRANTEE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(97), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "user_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(170), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "user_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "PRIVILEGE_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(21), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "user_privileges", + }, + Columns: []*catalog.Column{ + { + Name: "IS_GRANTABLE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "VIEW_DEFINITION", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "CHECK_OPTION", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "IS_UPDATABLE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "DEFINER", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "SECURITY_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(7), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "CHARACTER_SET_CLIENT", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "views", + }, + Columns: []*catalog.Column{ + { + Name: "COLLATION_CONNECTION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_routine_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_routine_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_routine_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_routine_usage", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_routine_usage", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_routine_usage", + }, + Columns: []*catalog.Column{ + { + Name: "SPECIFIC_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_table_usage", + }, + Columns: []*catalog.Column{ + { + Name: "VIEW_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_table_usage", + }, + Columns: []*catalog.Column{ + { + Name: "VIEW_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_table_usage", + }, + Columns: []*catalog.Column{ + { + Name: "VIEW_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_table_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_CATALOG", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_table_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "information_schema", + Name: "view_table_usage", + }, + Columns: []*catalog.Column{ + { + Name: "TABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + } + return s +} diff --git a/internal/engine/dolphin/mysql_catalog.go b/internal/engine/dolphin/mysql_catalog.go new file mode 100644 index 0000000000..2e013090eb --- /dev/null +++ b/internal/engine/dolphin/mysql_catalog.go @@ -0,0 +1,2038 @@ +// Code generated by sqlc-dolphin-gen. DO NOT EDIT. + +package dolphin + +import ( + "github.com/sqlc-dev/sqlc/internal/sql/ast" + "github.com/sqlc-dev/sqlc/internal/sql/catalog" +) + +var funcsgenMysqlCatalog = []*catalog.Function{} + +func genMysqlCatalog() *catalog.Schema { + s := &catalog.Schema{Name: "mysql"} + s.Funcs = funcsgenMysqlCatalog + s.Tables = []*catalog.Table{ + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "columns_priv", + }, + Columns: []*catalog.Column{ + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "Db", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "User", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "Table_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Column_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Timestamp", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "Column_priv", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(31), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "component", + }, + Columns: []*catalog.Column{ + { + Name: "component_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "component_group_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "component_urn", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "db", + }, + Columns: []*catalog.Column{ + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "Db", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "User", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "Select_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Insert_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Update_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Delete_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Drop_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Grant_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "References_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Index_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Alter_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_tmp_table_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Lock_tables_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_view_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Show_view_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_routine_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Alter_routine_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Execute_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Event_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Trigger_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "default_roles", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "DEFAULT_ROLE_HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "DEFAULT_ROLE_USER", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "engine_cost", + }, + Columns: []*catalog.Column{ + { + Name: "engine_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "device_type", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "cost_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "cost_value", + Type: ast.TypeName{Name: "float"}, + }, + { + Name: "last_update", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "comment", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "default_value", + Type: ast.TypeName{Name: "float"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "func", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "ret", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "dl", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "type", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "general_log", + }, + Columns: []*catalog.Column{ + { + Name: "event_time", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "user_host", + Type: ast.TypeName{Name: "mediumtext"}, + IsNotNull: true, + Length: toPointer(16777215), + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "server_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "command_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "argument", + Type: ast.TypeName{Name: "mediumblob"}, + IsNotNull: true, + Length: toPointer(16777215), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "global_grants", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "PRIV", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "WITH_GRANT_OPTION", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "gtid_executed", + }, + Columns: []*catalog.Column{ + { + Name: "source_uuid", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(36), + }, + { + Name: "interval_start", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "interval_end", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "gtid_tag", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "help_category", + }, + Columns: []*catalog.Column{ + { + Name: "help_category_id", + Type: ast.TypeName{Name: "smallint"}, + IsNotNull: true, + }, + { + Name: "name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "parent_category_id", + Type: ast.TypeName{Name: "smallint"}, + }, + { + Name: "url", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "help_keyword", + }, + Columns: []*catalog.Column{ + { + Name: "help_keyword_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "help_relation", + }, + Columns: []*catalog.Column{ + { + Name: "help_topic_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "help_keyword_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "help_topic", + }, + Columns: []*catalog.Column{ + { + Name: "help_topic_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "help_category_id", + Type: ast.TypeName{Name: "smallint"}, + IsNotNull: true, + }, + { + Name: "description", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "example", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "url", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "innodb_index_stats", + }, + Columns: []*catalog.Column{ + { + Name: "database_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(199), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "last_update", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "stat_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "stat_value", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sample_size", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "stat_description", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "innodb_table_stats", + }, + Columns: []*catalog.Column{ + { + Name: "database_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(199), + }, + { + Name: "last_update", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "n_rows", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "clustered_index_size", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sum_of_other_index_sizes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "ndb_binlog_index", + }, + Columns: []*catalog.Column{ + { + Name: "Position", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "File", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "epoch", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "inserts", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "updates", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "deletes", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "schemaops", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "orig_server_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "orig_epoch", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "gci", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "next_position", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "next_file", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "password_history", + }, + Columns: []*catalog.Column{ + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "User", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "Password_timestamp", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "Password", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "plugin", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "dl", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "procs_priv", + }, + Columns: []*catalog.Column{ + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "Db", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "User", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "Routine_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Routine_type", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(9), + }, + { + Name: "Grantor", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(288), + }, + { + Name: "Proc_priv", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(27), + }, + { + Name: "Timestamp", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "proxies_priv", + }, + Columns: []*catalog.Column{ + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "User", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "Proxied_host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "Proxied_user", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "With_grant", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Grantor", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(288), + }, + { + Name: "Timestamp", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "replication_asynchronous_connection_failover", + }, + Columns: []*catalog.Column{ + { + Name: "Channel_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "Port", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Network_namespace", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Weight", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Managed_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "replication_asynchronous_connection_failover_managed", + }, + Columns: []*catalog.Column{ + { + Name: "Channel_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Managed_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Managed_type", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Configuration", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "replication_group_configuration_version", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "version", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "replication_group_member_actions", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "event", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "enabled", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "type", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "priority", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "error_handling", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "role_edges", + }, + Columns: []*catalog.Column{ + { + Name: "FROM_HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "FROM_USER", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "TO_HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "TO_USER", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "WITH_ADMIN_OPTION", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "server_cost", + }, + Columns: []*catalog.Column{ + { + Name: "cost_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "cost_value", + Type: ast.TypeName{Name: "float"}, + }, + { + Name: "last_update", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "comment", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "default_value", + Type: ast.TypeName{Name: "float"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "servers", + }, + Columns: []*catalog.Column{ + { + Name: "Server_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "Db", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Username", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Password", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Port", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Socket", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Wrapper", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Owner", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "slave_master_info", + }, + Columns: []*catalog.Column{ + { + Name: "Number_of_lines", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Master_log_name", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "Master_log_pos", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "Host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "User_name", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "User_password", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Port", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Connect_retry", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Enabled_ssl", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Ssl_ca", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Ssl_capath", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Ssl_cert", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Ssl_cipher", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Ssl_key", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Ssl_verify_server_cert", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Heartbeat", + Type: ast.TypeName{Name: "float"}, + IsNotNull: true, + }, + { + Name: "Bind", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Ignored_server_ids", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Uuid", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Retry_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "Ssl_crl", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Ssl_crlpath", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Enabled_auto_position", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Channel_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Tls_version", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Public_key_path", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Get_public_key", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Network_namespace", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Master_compression_algorithm", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Master_zstd_compression_level", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Tls_ciphersuites", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Source_connection_auto_failover", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Gtid_only", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "slave_relay_log_info", + }, + Columns: []*catalog.Column{ + { + Name: "Number_of_lines", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Relay_log_name", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Relay_log_pos", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "Master_log_name", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Master_log_pos", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "Sql_delay", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "Number_of_workers", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "Id", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "Channel_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Privilege_checks_username", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "Privilege_checks_hostname", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "Require_row_format", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Require_table_primary_key_check", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(8), + }, + { + Name: "Assign_gtids_to_anonymous_transactions_type", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(5), + }, + { + Name: "Assign_gtids_to_anonymous_transactions_value", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "slave_worker_info", + }, + Columns: []*catalog.Column{ + { + Name: "Id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Relay_log_name", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "Relay_log_pos", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "Master_log_name", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "Master_log_pos", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "Checkpoint_relay_log_name", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "Checkpoint_relay_log_pos", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "Checkpoint_master_log_name", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "Checkpoint_master_log_pos", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "Checkpoint_seqno", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Checkpoint_group_size", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Checkpoint_group_bitmap", + Type: ast.TypeName{Name: "blob"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "Channel_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "slow_log", + }, + Columns: []*catalog.Column{ + { + Name: "start_time", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "user_host", + Type: ast.TypeName{Name: "mediumtext"}, + IsNotNull: true, + Length: toPointer(16777215), + }, + { + Name: "query_time", + Type: ast.TypeName{Name: "time"}, + IsNotNull: true, + }, + { + Name: "lock_time", + Type: ast.TypeName{Name: "time"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "last_insert_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "insert_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "server_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "sql_text", + Type: ast.TypeName{Name: "mediumblob"}, + IsNotNull: true, + Length: toPointer(16777215), + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "tables_priv", + }, + Columns: []*catalog.Column{ + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "Db", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "User", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "Table_name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Grantor", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(288), + }, + { + Name: "Timestamp", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "Table_priv", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(98), + }, + { + Name: "Column_priv", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(31), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "time_zone", + }, + Columns: []*catalog.Column{ + { + Name: "Time_zone_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Use_leap_seconds", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "time_zone_leap_second", + }, + Columns: []*catalog.Column{ + { + Name: "Transition_time", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "Correction", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "time_zone_name", + }, + Columns: []*catalog.Column{ + { + Name: "Name", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "Time_zone_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "time_zone_transition", + }, + Columns: []*catalog.Column{ + { + Name: "Time_zone_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Transition_time", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "Transition_type_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "time_zone_transition_type", + }, + Columns: []*catalog.Column{ + { + Name: "Time_zone_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Transition_type_id", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Offset", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "Is_DST", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "Abbreviation", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "mysql", + Name: "user", + }, + Columns: []*catalog.Column{ + { + Name: "Host", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "User", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "Select_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Insert_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Update_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Delete_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Drop_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Reload_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Shutdown_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Process_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "File_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Grant_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "References_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Index_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Alter_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Show_db_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Super_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_tmp_table_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Lock_tables_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Execute_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Repl_slave_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Repl_client_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_view_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Show_view_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_routine_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Alter_routine_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_user_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Event_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Trigger_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_tablespace_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "ssl_type", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(9), + }, + { + Name: "ssl_cipher", + Type: ast.TypeName{Name: "blob"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "x509_issuer", + Type: ast.TypeName{Name: "blob"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "x509_subject", + Type: ast.TypeName{Name: "blob"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "max_questions", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "max_updates", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "max_connections", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "max_user_connections", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "plugin", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "authentication_string", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "password_expired", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "password_last_changed", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "password_lifetime", + Type: ast.TypeName{Name: "smallint"}, + }, + { + Name: "account_locked", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Create_role_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Drop_role_priv", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "Password_reuse_history", + Type: ast.TypeName{Name: "smallint"}, + }, + { + Name: "Password_reuse_time", + Type: ast.TypeName{Name: "smallint"}, + }, + { + Name: "Password_require_current", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(1), + }, + { + Name: "User_attributes", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + } + return s +} diff --git a/internal/engine/dolphin/performance_schema.go b/internal/engine/dolphin/performance_schema.go new file mode 100644 index 0000000000..9ad2ab116a --- /dev/null +++ b/internal/engine/dolphin/performance_schema.go @@ -0,0 +1,8577 @@ +// Code generated by sqlc-dolphin-gen. DO NOT EDIT. + +package dolphin + +import ( + "github.com/sqlc-dev/sqlc/internal/sql/ast" + "github.com/sqlc-dev/sqlc/internal/sql/catalog" +) + +var funcsgenPerformanceSchema = []*catalog.Function{} + +func genPerformanceSchema() *catalog.Schema { + s := &catalog.Schema{Name: "performance_schema"} + s.Funcs = funcsgenPerformanceSchema + s.Tables = []*catalog.Table{ + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "accounts", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "CURRENT_CONNECTIONS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "TOTAL_CONNECTIONS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_SESSION_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_SESSION_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "binary_log_transaction_compression_stats", + }, + Columns: []*catalog.Column{ + { + Name: "LOG_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "COMPRESSION_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "TRANSACTION_COUNTER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COMPRESSED_BYTES_COUNTER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "UNCOMPRESSED_BYTES_COUNTER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COMPRESSION_PERCENTAGE", + Type: ast.TypeName{Name: "smallint"}, + IsNotNull: true, + }, + { + Name: "FIRST_TRANSACTION_ID", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "FIRST_TRANSACTION_COMPRESSED_BYTES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_TRANSACTION_UNCOMPRESSED_BYTES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_TRANSACTION_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "LAST_TRANSACTION_ID", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "LAST_TRANSACTION_COMPRESSED_BYTES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LAST_TRANSACTION_UNCOMPRESSED_BYTES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LAST_TRANSACTION_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "cond_instances", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "data_lock_waits", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "REQUESTING_ENGINE_LOCK_ID", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "REQUESTING_ENGINE_TRANSACTION_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "REQUESTING_THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "REQUESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "REQUESTING_OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "BLOCKING_ENGINE_LOCK_ID", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "BLOCKING_ENGINE_TRANSACTION_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "BLOCKING_THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "BLOCKING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "BLOCKING_OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "data_locks", + }, + Columns: []*catalog.Column{ + { + Name: "ENGINE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "ENGINE_LOCK_ID", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "ENGINE_TRANSACTION_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "PARTITION_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SUBPARTITION_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "INDEX_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOCK_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "LOCK_MODE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "LOCK_STATUS", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "LOCK_DATA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(8192), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "error_log", + }, + Columns: []*catalog.Column{ + { + Name: "LOGGED", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "PRIO", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(7), + }, + { + Name: "ERROR_CODE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(10), + }, + { + Name: "SUBSYSTEM", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(7), + }, + { + Name: "DATA", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_errors_summary_by_account_by_error", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "ERROR_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SQL_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + { + Name: "SUM_ERROR_RAISED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERROR_HANDLED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "LAST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_errors_summary_by_host_by_error", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "ERROR_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SQL_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + { + Name: "SUM_ERROR_RAISED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERROR_HANDLED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "LAST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_errors_summary_by_thread_by_error", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "ERROR_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SQL_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + { + Name: "SUM_ERROR_RAISED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERROR_HANDLED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "LAST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_errors_summary_by_user_by_error", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "ERROR_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SQL_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + { + Name: "SUM_ERROR_RAISED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERROR_HANDLED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "LAST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_errors_summary_global_by_error", + }, + Columns: []*catalog.Column{ + { + Name: "ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "ERROR_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SQL_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + { + Name: "SUM_ERROR_RAISED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERROR_HANDLED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "LAST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_stages_current", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "WORK_COMPLETED", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "WORK_ESTIMATED", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_stages_history", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "WORK_COMPLETED", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "WORK_ESTIMATED", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_stages_history_long", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "WORK_COMPLETED", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "WORK_ESTIMATED", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_stages_summary_by_account_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_stages_summary_by_host_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_stages_summary_by_thread_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_stages_summary_by_user_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_stages_summary_global_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_current", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SQL_TEXT", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "DIGEST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "DIGEST_TEXT", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "CURRENT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "MYSQL_ERRNO", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "RETURNED_SQLSTATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + { + Name: "MESSAGE_TEXT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "NESTING_EVENT_LEVEL", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "STATEMENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EXECUTION_ENGINE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_histogram_by_digest", + }, + Columns: []*catalog.Column{ + { + Name: "SCHEMA_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "DIGEST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "BUCKET_NUMBER", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "BUCKET_TIMER_LOW", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "BUCKET_TIMER_HIGH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_BUCKET", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_BUCKET_AND_LOWER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "BUCKET_QUANTILE", + Type: ast.TypeName{Name: "double"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_histogram_global", + }, + Columns: []*catalog.Column{ + { + Name: "BUCKET_NUMBER", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "BUCKET_TIMER_LOW", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "BUCKET_TIMER_HIGH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_BUCKET", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_BUCKET_AND_LOWER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "BUCKET_QUANTILE", + Type: ast.TypeName{Name: "double"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_history", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SQL_TEXT", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "DIGEST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "DIGEST_TEXT", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "CURRENT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "MYSQL_ERRNO", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "RETURNED_SQLSTATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + { + Name: "MESSAGE_TEXT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "NESTING_EVENT_LEVEL", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "STATEMENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EXECUTION_ENGINE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_history_long", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SQL_TEXT", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "DIGEST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "DIGEST_TEXT", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "CURRENT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "MYSQL_ERRNO", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "RETURNED_SQLSTATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(5), + }, + { + Name: "MESSAGE_TEXT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "NESTING_EVENT_LEVEL", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "STATEMENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EXECUTION_ENGINE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_summary_by_account_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SECONDARY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_summary_by_digest", + }, + Columns: []*catalog.Column{ + { + Name: "SCHEMA_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "DIGEST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "DIGEST_TEXT", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SECONDARY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "QUANTILE_95", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "QUANTILE_99", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "QUANTILE_999", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "QUERY_SAMPLE_TEXT", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "QUERY_SAMPLE_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "QUERY_SAMPLE_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_summary_by_host_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SECONDARY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_summary_by_program", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(9), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_STATEMENTS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_STATEMENTS_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_STATEMENTS_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_STATEMENTS_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_STATEMENTS_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SECONDARY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_summary_by_thread_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SECONDARY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_summary_by_user_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SECONDARY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_statements_summary_global_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SECONDARY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_transactions_current", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "STATE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "TRX_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "GTID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(90), + }, + { + Name: "XID_FORMAT_ID", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "XID_GTRID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(130), + }, + { + Name: "XID_BQUAL", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(130), + }, + { + Name: "XA_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "ACCESS_MODE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(10), + }, + { + Name: "ISOLATION_LEVEL", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "AUTOCOMMIT", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "NUMBER_OF_SAVEPOINTS", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NUMBER_OF_ROLLBACK_TO_SAVEPOINT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NUMBER_OF_RELEASE_SAVEPOINT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_transactions_history", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "STATE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "TRX_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "GTID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(90), + }, + { + Name: "XID_FORMAT_ID", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "XID_GTRID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(130), + }, + { + Name: "XID_BQUAL", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(130), + }, + { + Name: "XA_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "ACCESS_MODE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(10), + }, + { + Name: "ISOLATION_LEVEL", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "AUTOCOMMIT", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "NUMBER_OF_SAVEPOINTS", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NUMBER_OF_ROLLBACK_TO_SAVEPOINT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NUMBER_OF_RELEASE_SAVEPOINT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_transactions_history_long", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "STATE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "TRX_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "GTID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(90), + }, + { + Name: "XID_FORMAT_ID", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "XID_GTRID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(130), + }, + { + Name: "XID_BQUAL", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(130), + }, + { + Name: "XA_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "ACCESS_MODE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(10), + }, + { + Name: "ISOLATION_LEVEL", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "AUTOCOMMIT", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "NUMBER_OF_SAVEPOINTS", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NUMBER_OF_ROLLBACK_TO_SAVEPOINT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NUMBER_OF_RELEASE_SAVEPOINT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_transactions_summary_by_account_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_transactions_summary_by_host_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_transactions_summary_by_thread_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_transactions_summary_by_user_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_transactions_summary_global_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_ONLY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_current", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "SPINS", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "INDEX_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "OPERATION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "NUMBER_OF_BYTES", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "FLAGS", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_history", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "SPINS", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "INDEX_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "OPERATION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "NUMBER_OF_BYTES", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "FLAGS", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_history_long", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "TIMER_START", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_END", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "SPINS", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "INDEX_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NESTING_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "NESTING_EVENT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "OPERATION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "NUMBER_OF_BYTES", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "FLAGS", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_summary_by_account_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_summary_by_host_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_summary_by_instance", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_summary_by_thread_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_summary_by_user_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "events_waits_summary_global_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "file_instances", + }, + Columns: []*catalog.Column{ + { + Name: "FILE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "OPEN_COUNT", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "file_summary_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "file_summary_by_instance", + }, + Columns: []*catalog.Column{ + { + Name: "FILE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "global_status", + }, + Columns: []*catalog.Column{ + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "global_variables", + }, + Columns: []*catalog.Column{ + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "host_cache", + }, + Columns: []*catalog.Column{ + { + Name: "IP", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "HOST_VALIDATED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "SUM_CONNECT_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_HOST_BLOCKED_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_NAMEINFO_TRANSIENT_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_NAMEINFO_PERMANENT_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FORMAT_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_ADDRINFO_TRANSIENT_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_ADDRINFO_PERMANENT_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FCRDNS_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_HOST_ACL_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_NO_AUTH_PLUGIN_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_AUTH_PLUGIN_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_HANDSHAKE_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_PROXY_USER_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_PROXY_USER_ACL_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_AUTHENTICATION_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SSL_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_MAX_USER_CONNECTIONS_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_DEFAULT_DATABASE_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_INIT_CONNECT_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_LOCAL_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_UNKNOWN_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FIRST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "FIRST_ERROR_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "LAST_ERROR_SEEN", + Type: ast.TypeName{Name: "timestamp"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "hosts", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "CURRENT_CONNECTIONS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "TOTAL_CONNECTIONS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_SESSION_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_SESSION_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "innodb_redo_log_files", + }, + Columns: []*catalog.Column{ + { + Name: "FILE_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "FILE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(2000), + }, + { + Name: "START_LSN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "END_LSN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SIZE_IN_BYTES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "IS_FULL", + Type: ast.TypeName{Name: "tinyint"}, + IsNotNull: true, + }, + { + Name: "CONSUMER_LEVEL", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "keyring_component_status", + }, + Columns: []*catalog.Column{ + { + Name: "STATUS_KEY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(256), + }, + { + Name: "STATUS_VALUE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "keyring_keys", + }, + Columns: []*catalog.Column{ + { + Name: "KEY_ID", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "KEY_OWNER", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "BACKEND_KEY_ID", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "log_status", + }, + Columns: []*catalog.Column{ + { + Name: "SERVER_UUID", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(36), + }, + { + Name: "LOCAL", + Type: ast.TypeName{Name: "json"}, + IsNotNull: true, + }, + { + Name: "REPLICATION", + Type: ast.TypeName{Name: "json"}, + IsNotNull: true, + }, + { + Name: "STORAGE_ENGINES", + Type: ast.TypeName{Name: "json"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "memory_summary_by_account_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "memory_summary_by_host_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "memory_summary_by_thread_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "memory_summary_by_user_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "memory_summary_global_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_ALLOC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_FREE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_COUNT_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOW_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "CURRENT_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HIGH_NUMBER_OF_BYTES_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "metadata_locks", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "COLUMN_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOCK_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "LOCK_DURATION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "LOCK_STATUS", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "SOURCE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OWNER_THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "OWNER_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "mutex_instances", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LOCKED_BY_THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "objects_summary_global_by_type", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "performance_timers", + }, + Columns: []*catalog.Column{ + { + Name: "TIMER_NAME", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(11), + }, + { + Name: "TIMER_FREQUENCY", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_RESOLUTION", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "TIMER_OVERHEAD", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "persisted_variables", + }, + Columns: []*catalog.Column{ + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "prepared_statements_instances", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "STATEMENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "STATEMENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SQL_TEXT", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + { + Name: "OWNER_THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "OWNER_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "OWNER_OBJECT_TYPE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "OWNER_OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OWNER_OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "EXECUTION_ENGINE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "TIMER_PREPARE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_REPREPARE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_EXECUTE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_EXECUTE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_EXECUTE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_EXECUTE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_EXECUTE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_LOCK_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ERRORS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_WARNINGS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_AFFECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_SENT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_ROWS_EXAMINED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_DISK_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CREATED_TMP_TABLES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_FULL_RANGE_JOIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_RANGE_CHECK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SELECT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_MERGE_PASSES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_RANGE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_ROWS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_SORT_SCAN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NO_GOOD_INDEX_USED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_CPU_TIME", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_SECONDARY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "USER", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(261), + }, + { + Name: "DB", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "COMMAND", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "TIME", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "INFO", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "EXECUTION_ENGINE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_applier_configuration", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "DESIRED_DELAY", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "PRIVILEGE_CHECKS_USER", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "REQUIRE_ROW_FORMAT", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "REQUIRE_TABLE_PRIMARY_KEY_CHECK", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(8), + }, + { + Name: "ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(5), + }, + { + Name: "ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_VALUE", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_applier_filters", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "FILTER_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "FILTER_RULE", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + { + Name: "CONFIGURED_BY", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(37), + }, + { + Name: "ACTIVE_SINCE", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "COUNTER", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_applier_global_filters", + }, + Columns: []*catalog.Column{ + { + Name: "FILTER_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "FILTER_RULE", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + { + Name: "CONFIGURED_BY", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(25), + }, + { + Name: "ACTIVE_SINCE", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_applier_status", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "SERVICE_STATE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "REMAINING_DELAY", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "COUNT_TRANSACTIONS_RETRIES", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_applier_status_by_coordinator", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "SERVICE_STATE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "LAST_ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "LAST_ERROR_MESSAGE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1024), + }, + { + Name: "LAST_ERROR_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_PROCESSED_TRANSACTION", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(90), + }, + { + Name: "LAST_PROCESSED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_PROCESSED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_PROCESSED_TRANSACTION_START_BUFFER_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_PROCESSED_TRANSACTION_END_BUFFER_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "PROCESSING_TRANSACTION", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(90), + }, + { + Name: "PROCESSING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "PROCESSING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "PROCESSING_TRANSACTION_START_BUFFER_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_applier_status_by_worker", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "WORKER_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "SERVICE_STATE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "LAST_ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "LAST_ERROR_MESSAGE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1024), + }, + { + Name: "LAST_ERROR_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_APPLIED_TRANSACTION", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(90), + }, + { + Name: "LAST_APPLIED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_APPLIED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_APPLIED_TRANSACTION_START_APPLY_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_APPLIED_TRANSACTION_END_APPLY_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "APPLYING_TRANSACTION", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(90), + }, + { + Name: "APPLYING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "APPLYING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "APPLYING_TRANSACTION_START_APPLY_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_APPLIED_TRANSACTION_RETRIES_COUNT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_MESSAGE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "LAST_APPLIED_TRANSACTION_LAST_TRANSIENT_ERROR_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "APPLYING_TRANSACTION_RETRIES_COUNT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_MESSAGE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "APPLYING_TRANSACTION_LAST_TRANSIENT_ERROR_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_asynchronous_connection_failover", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "PORT", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "NETWORK_NAMESPACE", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(64), + }, + { + Name: "WEIGHT", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "MANAGED_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_asynchronous_connection_failover_managed", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "MANAGED_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "MANAGED_TYPE", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "CONFIGURATION", + Type: ast.TypeName{Name: "json"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_connection_configuration", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "PORT", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "NETWORK_INTERFACE", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(60), + }, + { + Name: "AUTO_POSITION", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "SSL_ALLOWED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(7), + }, + { + Name: "SSL_CA_FILE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "SSL_CA_PATH", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "SSL_CERTIFICATE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "SSL_CIPHER", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "SSL_KEY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "SSL_VERIFY_SERVER_CERTIFICATE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "SSL_CRL_FILE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "SSL_CRL_PATH", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "CONNECTION_RETRY_INTERVAL", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "CONNECTION_RETRY_COUNT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "HEARTBEAT_INTERVAL", + Type: ast.TypeName{Name: "double"}, + IsNotNull: true, + }, + { + Name: "TLS_VERSION", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "PUBLIC_KEY_PATH", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "GET_PUBLIC_KEY", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "NETWORK_NAMESPACE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "COMPRESSION_ALGORITHM", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "ZSTD_COMPRESSION_LEVEL", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "TLS_CIPHERSUITES", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "SOURCE_CONNECTION_AUTO_FAILOVER", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "GTID_ONLY", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_connection_status", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "GROUP_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(36), + }, + { + Name: "SOURCE_UUID", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(36), + }, + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "SERVICE_STATE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(10), + }, + { + Name: "COUNT_RECEIVED_HEARTBEATS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "LAST_HEARTBEAT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "RECEIVED_TRANSACTION_SET", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + { + Name: "LAST_ERROR_NUMBER", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "LAST_ERROR_MESSAGE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1024), + }, + { + Name: "LAST_ERROR_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_QUEUED_TRANSACTION", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(90), + }, + { + Name: "LAST_QUEUED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_QUEUED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_QUEUED_TRANSACTION_START_QUEUE_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "LAST_QUEUED_TRANSACTION_END_QUEUE_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "QUEUEING_TRANSACTION", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(90), + }, + { + Name: "QUEUEING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "QUEUEING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "QUEUEING_TRANSACTION_START_QUEUE_TIMESTAMP", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_group_member_stats", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VIEW_ID", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(60), + }, + { + Name: "MEMBER_ID", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(36), + }, + { + Name: "COUNT_TRANSACTIONS_IN_QUEUE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_TRANSACTIONS_CHECKED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_CONFLICTS_DETECTED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_TRANSACTIONS_ROWS_VALIDATING", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "TRANSACTIONS_COMMITTED_ALL_MEMBERS", + Type: ast.TypeName{Name: "longtext"}, + IsNotNull: true, + Length: toPointer(4294967295), + }, + { + Name: "LAST_CONFLICT_FREE_TRANSACTION", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + Length: toPointer(65535), + }, + { + Name: "COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_TRANSACTIONS_REMOTE_APPLIED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_TRANSACTIONS_LOCAL_PROPOSED", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_TRANSACTIONS_LOCAL_ROLLBACK", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "replication_group_members", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL_NAME", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "MEMBER_ID", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(36), + }, + { + Name: "MEMBER_HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "MEMBER_PORT", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "MEMBER_STATE", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "MEMBER_ROLE", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "MEMBER_VERSION", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "MEMBER_COMMUNICATION_STACK", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "rwlock_instances", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "WRITE_LOCKED_BY_THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "READ_LOCKED_BY_COUNT", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "session_account_connect_attrs", + }, + Columns: []*catalog.Column{ + { + Name: "PROCESSLIST_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ATTR_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "ATTR_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "ORDINAL_POSITION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "session_connect_attrs", + }, + Columns: []*catalog.Column{ + { + Name: "PROCESSLIST_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ATTR_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "ATTR_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "ORDINAL_POSITION", + Type: ast.TypeName{Name: "int"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "session_status", + }, + Columns: []*catalog.Column{ + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "session_variables", + }, + Columns: []*catalog.Column{ + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "setup_actors", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(255), + }, + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "ROLE", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "ENABLED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "HISTORY", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "setup_consumers", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "ENABLED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "setup_instruments", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "ENABLED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "TIMED", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "PROPERTIES", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(71), + }, + { + Name: "FLAGS", + Type: ast.TypeName{Name: "set"}, + Length: toPointer(10), + }, + { + Name: "VOLATILITY", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "DOCUMENTATION", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "setup_meters", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(63), + }, + { + Name: "FREQUENCY", + Type: ast.TypeName{Name: "mediumint"}, + IsNotNull: true, + }, + { + Name: "ENABLED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "DESCRIPTION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1023), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "setup_metrics", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(63), + }, + { + Name: "METER", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(63), + }, + { + Name: "METRIC_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(20), + }, + { + Name: "NUM_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(7), + }, + { + Name: "UNIT", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(63), + }, + { + Name: "DESCRIPTION", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1023), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "setup_objects", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(9), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "ENABLED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "TIMED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "setup_threads", + }, + Columns: []*catalog.Column{ + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "ENABLED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "HISTORY", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "PROPERTIES", + Type: ast.TypeName{Name: "set"}, + IsNotNull: true, + Length: toPointer(14), + }, + { + Name: "VOLATILITY", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "DOCUMENTATION", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "socket_instances", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "SOCKET_ID", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "IP", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "PORT", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "STATE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(6), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "socket_summary_by_event_name", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "socket_summary_by_instance", + }, + Columns: []*catalog.Column{ + { + Name: "EVENT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_NUMBER_OF_BYTES_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_MISC", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "status_by_account", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "status_by_host", + }, + Columns: []*catalog.Column{ + { + Name: "HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "status_by_thread", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "status_by_user", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "table_handles", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "OBJECT_INSTANCE_BEGIN", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "OWNER_THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "OWNER_EVENT_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "INTERNAL_LOCK", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "EXTERNAL_LOCK", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "table_io_waits_summary_by_index_usage", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "INDEX_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "table_io_waits_summary_by_table", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_FETCH", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_UPDATE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_DELETE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "table_lock_waits_summary_by_table", + }, + Columns: []*catalog.Column{ + { + Name: "OBJECT_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_SCHEMA", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "OBJECT_NAME", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "COUNT_STAR", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WAIT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_WITH_SHARED_LOCKS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_WITH_SHARED_LOCKS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_WITH_SHARED_LOCKS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_WITH_SHARED_LOCKS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_WITH_SHARED_LOCKS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_HIGH_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_HIGH_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_HIGH_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_HIGH_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_HIGH_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_NO_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_NO_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_NO_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_NO_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_NO_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_READ_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_READ_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_READ_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_READ_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_READ_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE_ALLOW_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE_ALLOW_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE_ALLOW_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE_ALLOW_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE_ALLOW_WRITE", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE_CONCURRENT_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE_CONCURRENT_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE_CONCURRENT_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE_CONCURRENT_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE_CONCURRENT_INSERT", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE_LOW_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE_LOW_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE_LOW_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE_LOW_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE_LOW_PRIORITY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE_NORMAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "COUNT_WRITE_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "SUM_TIMER_WRITE_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MIN_TIMER_WRITE_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "AVG_TIMER_WRITE_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TIMER_WRITE_EXTERNAL", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "threads", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(10), + }, + { + Name: "PROCESSLIST_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "PROCESSLIST_USER", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "PROCESSLIST_HOST", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "PROCESSLIST_DB", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "PROCESSLIST_COMMAND", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "PROCESSLIST_TIME", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "PROCESSLIST_STATE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "PROCESSLIST_INFO", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "PARENT_THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "ROLE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "INSTRUMENTED", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "HISTORY", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "CONNECTION_TYPE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "THREAD_OS_ID", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "RESOURCE_GROUP", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "EXECUTION_ENGINE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "TELEMETRY_ACTIVE", + Type: ast.TypeName{Name: "enum"}, + IsNotNull: true, + Length: toPointer(3), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "tls_channel_status", + }, + Columns: []*catalog.Column{ + { + Name: "CHANNEL", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "PROPERTY", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "VALUE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(2048), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "user_defined_functions", + }, + Columns: []*catalog.Column{ + { + Name: "UDF_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "UDF_RETURN_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(20), + }, + { + Name: "UDF_TYPE", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(20), + }, + { + Name: "UDF_LIBRARY", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "UDF_USAGE_COUNT", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "user_variables_by_thread", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "longblob"}, + Length: toPointer(4294967295), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "users", + }, + Columns: []*catalog.Column{ + { + Name: "USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "CURRENT_CONNECTIONS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "TOTAL_CONNECTIONS", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_SESSION_CONTROLLED_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "MAX_SESSION_TOTAL_MEMORY", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "variables_by_thread", + }, + Columns: []*catalog.Column{ + { + Name: "THREAD_ID", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "performance_schema", + Name: "variables_info", + }, + Columns: []*catalog.Column{ + { + Name: "VARIABLE_NAME", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "VARIABLE_SOURCE", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(12), + }, + { + Name: "VARIABLE_PATH", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "MIN_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "MAX_VALUE", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "SET_TIME", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "SET_USER", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(32), + }, + { + Name: "SET_HOST", + Type: ast.TypeName{Name: "char"}, + Length: toPointer(255), + }, + }, + }, + } + return s +} diff --git a/internal/engine/dolphin/sys_schema.go b/internal/engine/dolphin/sys_schema.go new file mode 100644 index 0000000000..0f6c126f93 --- /dev/null +++ b/internal/engine/dolphin/sys_schema.go @@ -0,0 +1,11229 @@ +// Code generated by sqlc-dolphin-gen. DO NOT EDIT. + +package dolphin + +import ( + "github.com/sqlc-dev/sqlc/internal/sql/ast" + "github.com/sqlc-dev/sqlc/internal/sql/catalog" +) + +var funcsgenSysSchema = []*catalog.Function{ + { + Name: "create_synonym_db", + Args: []*catalog.Argument{ + { + Name: "in_db_name", + Type: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "in_synonym", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + }, + { + Name: "diagnostics", + Args: []*catalog.Argument{ + { + Name: "in_max_runtime", + Type: &ast.TypeName{Name: "int"}, + }, + { + Name: "in_interval", + Type: &ast.TypeName{Name: "int"}, + }, + { + Name: "in_auto_config", + Type: &ast.TypeName{Name: "enum"}, + }, + }, + }, + { + Name: "execute_prepared_stmt", + Args: []*catalog.Argument{ + { + Name: "in_query", + Type: &ast.TypeName{Name: "longtext"}, + }, + }, + }, + { + Name: "extract_schema_from_file_name", + Args: []*catalog.Argument{ + { + Name: "path", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + ReturnType: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "extract_table_from_file_name", + Args: []*catalog.Argument{ + { + Name: "path", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + ReturnType: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "format_bytes", + Args: []*catalog.Argument{ + { + Name: "bytes", + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "format_path", + Args: []*catalog.Argument{ + { + Name: "in_path", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + ReturnType: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "format_statement", + Args: []*catalog.Argument{ + { + Name: "statement", + Type: &ast.TypeName{Name: "longtext"}, + }, + }, + ReturnType: &ast.TypeName{Name: "longtext"}, + }, + { + Name: "format_time", + Args: []*catalog.Argument{ + { + Name: "picoseconds", + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "list_add", + Args: []*catalog.Argument{ + { + Name: "in_list", + Type: &ast.TypeName{Name: "text"}, + }, + { + Name: "in_add_value", + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "list_drop", + Args: []*catalog.Argument{ + { + Name: "in_list", + Type: &ast.TypeName{Name: "text"}, + }, + { + Name: "in_drop_value", + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "ps_is_account_enabled", + Args: []*catalog.Argument{ + { + Name: "in_host", + Type: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "in_user", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + ReturnType: &ast.TypeName{Name: "enum"}, + }, + { + Name: "ps_is_consumer_enabled", + Args: []*catalog.Argument{ + { + Name: "in_consumer", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + ReturnType: &ast.TypeName{Name: "enum"}, + }, + { + Name: "ps_is_instrument_default_enabled", + Args: []*catalog.Argument{ + { + Name: "in_instrument", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + ReturnType: &ast.TypeName{Name: "enum"}, + }, + { + Name: "ps_is_instrument_default_timed", + Args: []*catalog.Argument{ + { + Name: "in_instrument", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + ReturnType: &ast.TypeName{Name: "enum"}, + }, + { + Name: "ps_is_thread_instrumented", + Args: []*catalog.Argument{ + { + Name: "in_connection_id", + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + ReturnType: &ast.TypeName{Name: "enum"}, + }, + { + Name: "ps_setup_disable_consumer", + Args: []*catalog.Argument{ + { + Name: "consumer", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + }, + { + Name: "ps_setup_disable_instrument", + Args: []*catalog.Argument{ + { + Name: "in_pattern", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + }, + { + Name: "ps_setup_disable_thread", + Args: []*catalog.Argument{ + { + Name: "in_connection_id", + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Name: "ps_setup_enable_consumer", + Args: []*catalog.Argument{ + { + Name: "consumer", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + }, + { + Name: "ps_setup_enable_instrument", + Args: []*catalog.Argument{ + { + Name: "in_pattern", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + }, + { + Name: "ps_setup_enable_thread", + Args: []*catalog.Argument{ + { + Name: "in_connection_id", + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Name: "ps_setup_reset_to_default", + Args: []*catalog.Argument{ + { + Name: "in_verbose", + Type: &ast.TypeName{Name: "tinyint"}, + }, + }, + }, + { + Name: "ps_setup_save", + Args: []*catalog.Argument{ + { + Name: "in_timeout", + Type: &ast.TypeName{Name: "int"}, + }, + }, + }, + { + Name: "ps_setup_show_disabled", + Args: []*catalog.Argument{ + { + Name: "in_show_instruments", + Type: &ast.TypeName{Name: "tinyint"}, + }, + { + Name: "in_show_threads", + Type: &ast.TypeName{Name: "tinyint"}, + }, + }, + }, + { + Name: "ps_setup_show_enabled", + Args: []*catalog.Argument{ + { + Name: "in_show_instruments", + Type: &ast.TypeName{Name: "tinyint"}, + }, + { + Name: "in_show_threads", + Type: &ast.TypeName{Name: "tinyint"}, + }, + }, + }, + { + Name: "ps_thread_account", + Args: []*catalog.Argument{ + { + Name: "in_thread_id", + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "ps_thread_id", + Args: []*catalog.Argument{ + { + Name: "in_connection_id", + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bigint"}, + }, + { + Name: "ps_thread_stack", + Args: []*catalog.Argument{ + { + Name: "thd_id", + Type: &ast.TypeName{Name: "bigint"}, + }, + { + Name: "debug", + Type: &ast.TypeName{Name: "tinyint"}, + }, + }, + ReturnType: &ast.TypeName{Name: "longtext"}, + }, + { + Name: "ps_thread_trx_info", + Args: []*catalog.Argument{ + { + Name: "in_thread_id", + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + ReturnType: &ast.TypeName{Name: "longtext"}, + }, + { + Name: "ps_trace_statement_digest", + Args: []*catalog.Argument{ + { + Name: "in_digest", + Type: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "in_runtime", + Type: &ast.TypeName{Name: "int"}, + }, + { + Name: "in_interval", + Type: &ast.TypeName{Name: "decimal"}, + }, + { + Name: "in_start_fresh", + Type: &ast.TypeName{Name: "tinyint"}, + }, + { + Name: "in_auto_enable", + Type: &ast.TypeName{Name: "tinyint"}, + }, + }, + }, + { + Name: "ps_trace_thread", + Args: []*catalog.Argument{ + { + Name: "in_thread_id", + Type: &ast.TypeName{Name: "bigint"}, + }, + { + Name: "in_outfile", + Type: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "in_max_runtime", + Type: &ast.TypeName{Name: "decimal"}, + }, + { + Name: "in_interval", + Type: &ast.TypeName{Name: "decimal"}, + }, + { + Name: "in_start_fresh", + Type: &ast.TypeName{Name: "tinyint"}, + }, + { + Name: "in_auto_setup", + Type: &ast.TypeName{Name: "tinyint"}, + }, + { + Name: "in_debug", + Type: &ast.TypeName{Name: "tinyint"}, + }, + }, + }, + { + Name: "ps_truncate_all_tables", + Args: []*catalog.Argument{ + { + Name: "in_verbose", + Type: &ast.TypeName{Name: "tinyint"}, + }, + }, + }, + { + Name: "quote_identifier", + Args: []*catalog.Argument{ + { + Name: "in_identifier", + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "statement_performance_analyzer", + Args: []*catalog.Argument{ + { + Name: "in_action", + Type: &ast.TypeName{Name: "enum"}, + }, + { + Name: "in_table", + Type: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "in_views", + Type: &ast.TypeName{Name: "set"}, + }, + }, + }, + { + Name: "sys_get_config", + Args: []*catalog.Argument{ + { + Name: "in_variable_name", + Type: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "in_default_value", + Type: &ast.TypeName{Name: "varchar"}, + }, + }, + ReturnType: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "table_exists", + Args: []*catalog.Argument{ + { + Name: "in_db", + Type: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "in_table", + Type: &ast.TypeName{Name: "varchar"}, + }, + { + Name: "out_exists", + Type: &ast.TypeName{Name: "enum"}, + Mode: ast.FuncParamOut, + }, + }, + }, +} + +func genSysSchema() *catalog.Schema { + s := &catalog.Schema{Name: "sys"} + s.Funcs = funcsgenSysSchema + s.Tables = []*catalog.Table{ + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "host_summary", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "statements", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statements", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "statement_avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "statement_avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "table_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "table_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_io_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "file_io_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "unique_users", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "unique_users", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_memory_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_memory_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "host_summary_by_file_io", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "host_summary_by_file_io_type", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "host_summary_by_stages", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "host_summary_by_statement_latency", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "host_summary_by_statement_type", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "statement", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "statement", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "innodb_buffer_stats_by_schema", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "data", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "data", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "pages", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_old", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_old", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_cached", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_cached", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "innodb_buffer_stats_by_table", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "data", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "data", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "pages", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_old", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_old", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_cached", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_cached", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "innodb_lock_waits", + }, + Columns: []*catalog.Column{ + { + Name: "wait_started", + Type: ast.TypeName{Name: "datetime"}, + }, + { + Name: "wait_started", + Type: ast.TypeName{Name: "datetime"}, + }, + { + Name: "wait_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "wait_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "wait_age_secs", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "wait_age_secs", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "locked_table", + Type: ast.TypeName{Name: "mediumtext"}, + Length: toPointer(16777215), + }, + { + Name: "locked_table", + Type: ast.TypeName{Name: "mediumtext"}, + Length: toPointer(16777215), + }, + { + Name: "locked_table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_partition", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_partition", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_subpartition", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_subpartition", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_index", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_index", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "locked_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "waiting_trx_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "waiting_trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_pid", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_pid", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "waiting_query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "waiting_lock_id", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "waiting_lock_id", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "waiting_lock_mode", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_lock_mode", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_pid", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_pid", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "blocking_query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "blocking_lock_id", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "blocking_lock_id", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "blocking_lock_mode", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_lock_mode", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "blocking_trx_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "blocking_trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sql_kill_blocking_query", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(33), + }, + { + Name: "sql_kill_blocking_query", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(33), + }, + { + Name: "sql_kill_blocking_connection", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(27), + }, + { + Name: "sql_kill_blocking_connection", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(27), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "io_by_thread_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "processlist_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "processlist_id", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "io_global_by_file_by_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_write", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_write", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "write_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "write_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "io_global_by_file_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "read_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "read_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "write_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "write_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "count_misc", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_misc", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "misc_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "misc_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "io_global_by_wait_by_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_requested", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_requested", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "io_global_by_wait_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "read_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "read_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "write_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "write_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "misc_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "misc_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_written", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "latest_file_io", + }, + Columns: []*catalog.Column{ + { + Name: "thread", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(317), + }, + { + Name: "thread", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(317), + }, + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "operation", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "operation", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "requested", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "requested", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "memory_by_host_by_current_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "memory_by_thread_by_current_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "memory_by_user_by_current_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "memory_global_by_current_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "current_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "high_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "high_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "high_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "high_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "high_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "high_avg_alloc", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "memory_global_total", + }, + Columns: []*catalog.Column{ + { + Name: "total_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "metrics", + }, + Columns: []*catalog.Column{ + { + Name: "Variable_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(193), + }, + { + Name: "Variable_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(193), + }, + { + Name: "Variable_value", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Variable_value", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "Type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(210), + }, + { + Name: "Type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(210), + }, + { + Name: "Enabled", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(7), + }, + { + Name: "Enabled", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(7), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "processlist", + }, + Columns: []*catalog.Column{ + { + Name: "thd_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thd_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "conn_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "conn_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "command", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "command", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "time", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "time", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "current_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "execution_engine", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "execution_engine", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "progress", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "progress", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "last_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "last_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "last_statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "last_statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "last_wait", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "last_wait", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "last_wait_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(13), + }, + { + Name: "last_wait_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(13), + }, + { + Name: "source", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "source", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "trx_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "trx_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "trx_state", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "trx_state", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "trx_autocommit", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "trx_autocommit", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "program_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "program_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "ps_check_lost_instrumentation", + }, + Columns: []*catalog.Column{ + { + Name: "variable_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "variable_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "variable_value", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "variable_value", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_auto_increment_columns", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "column_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "column_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "data_type", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "data_type", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "column_type", + Type: ast.TypeName{Name: "mediumtext"}, + IsNotNull: true, + Length: toPointer(16777215), + }, + { + Name: "column_type", + Type: ast.TypeName{Name: "mediumtext"}, + IsNotNull: true, + Length: toPointer(16777215), + }, + { + Name: "is_signed", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "is_signed", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "is_unsigned", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "is_unsigned", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "max_value", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "max_value", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "auto_increment", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "auto_increment", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "auto_increment_ratio", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "auto_increment_ratio", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_index_statistics", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "rows_selected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_selected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "select_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "select_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_object_overview", + }, + Columns: []*catalog.Column{ + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "object_type", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(19), + }, + { + Name: "object_type", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(19), + }, + { + Name: "count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_redundant_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "redundant_index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "redundant_index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "redundant_index_columns", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "redundant_index_columns", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "redundant_index_non_unique", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "redundant_index_non_unique", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "dominant_index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "dominant_index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "dominant_index_columns", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "dominant_index_columns", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "dominant_index_non_unique", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "dominant_index_non_unique", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "subpart_exists", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "subpart_exists", + Type: ast.TypeName{Name: "int"}, + IsNotNull: true, + }, + { + Name: "sql_drop_index", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(223), + }, + { + Name: "sql_drop_index", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(223), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_table_lock_waits", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "waiting_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_pid", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_pid", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_account", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "waiting_account", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "waiting_lock_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_lock_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_lock_duration", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_lock_duration", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "waiting_query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "waiting_query_secs", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_secs", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "blocking_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_pid", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "blocking_pid", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "blocking_account", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "blocking_account", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "blocking_lock_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_lock_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_lock_duration", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_lock_duration", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "sql_kill_blocking_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(31), + }, + { + Name: "sql_kill_blocking_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(31), + }, + { + Name: "sql_kill_blocking_connection", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(25), + }, + { + Name: "sql_kill_blocking_connection", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(25), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_table_statistics", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_fetched", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_fetched", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "fetch_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "fetch_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_read_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_read_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_read_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_write_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_write", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_write_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_write_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_misc_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_misc_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_table_statistics_with_buffer", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "rows_fetched", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_fetched", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "fetch_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "fetch_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_read_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_read", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_read_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_read_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_write_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_write", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_write_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_write_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_misc_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_misc_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "innodb_buffer_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "innodb_buffer_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "innodb_buffer_data", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "innodb_buffer_data", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "innodb_buffer_free", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "innodb_buffer_free", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "innodb_buffer_pages", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages_old", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages_old", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_rows_cached", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_rows_cached", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_tables_with_full_table_scans", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "rows_full_scanned", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_full_scanned", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "schema_unused_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "session", + }, + Columns: []*catalog.Column{ + { + Name: "thd_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thd_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "conn_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "conn_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "command", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "command", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "time", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "time", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "current_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "execution_engine", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "execution_engine", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "progress", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "progress", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "last_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "last_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "last_statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "last_statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "last_wait", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "last_wait", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "last_wait_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(13), + }, + { + Name: "last_wait_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(13), + }, + { + Name: "source", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "source", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "trx_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "trx_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "trx_state", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "trx_state", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "trx_autocommit", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "trx_autocommit", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "program_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "program_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "session_ssl_status", + }, + Columns: []*catalog.Column{ + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "ssl_version", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "ssl_version", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "ssl_cipher", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "ssl_cipher", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "ssl_sessions_reused", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "ssl_sessions_reused", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "statement_analysis", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "err_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "err_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warn_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warn_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_affected_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sorted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sorted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_merge_passes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_merge_passes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_controlled_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_controlled_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_total_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_total_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "statements_with_errors_or_warnings", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "errors", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "errors", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "error_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "error_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "warnings", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warnings", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warning_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "warning_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "statements_with_full_table_scans", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "no_index_used_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_index_used_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_good_index_used_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_good_index_used_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_index_used_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "no_index_used_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "statements_with_runtimes_in_95th_percentile", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "err_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "err_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warn_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warn_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "statements_with_sorting", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "sort_merge_passes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_merge_passes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_sort_merges", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_sort_merges", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "sorts_using_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sorts_using_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_using_range", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_using_range", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sorted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sorted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_rows_sorted", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_rows_sorted", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "statements_with_temp_tables", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "memory_tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "memory_tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "disk_tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "disk_tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_tmp_tables_per_query", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_tmp_tables_per_query", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "tmp_tables_to_disk_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "tmp_tables_to_disk_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "sys_config", + }, + Columns: []*catalog.Column{ + { + Name: "variable", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "value", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "set_time", + Type: ast.TypeName{Name: "timestamp"}, + }, + { + Name: "set_by", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "user_summary", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "statements", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statements", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "statement_avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "statement_avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "table_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "table_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_io_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "file_io_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "unique_hosts", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "unique_hosts", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_memory_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_memory_allocated", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "user_summary_by_file_io", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "io_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "user_summary_by_file_io_type", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "user_summary_by_stages", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "user_summary_by_statement_latency", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "user_summary_by_statement_type", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "statement", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "statement", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "version", + }, + Columns: []*catalog.Column{ + { + Name: "sys_version", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(5), + }, + { + Name: "sys_version", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(5), + }, + { + Name: "mysql_version", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(5), + }, + { + Name: "mysql_version", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(5), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "wait_classes_global_by_avg_latency", + }, + Columns: []*catalog.Column{ + { + Name: "event_class", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "event_class", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "wait_classes_global_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "event_class", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "event_class", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "waits_by_host_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "event", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "waits_by_user_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "event", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "waits_global_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "events", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "events", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(11), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$host_summary", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "statements", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statements", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_avg_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_avg_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "table_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "table_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_io_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_io_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "unique_users", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "unique_users", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_memory_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_memory_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$host_summary_by_file_io", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$host_summary_by_file_io_type", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$host_summary_by_stages", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$host_summary_by_statement_latency", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$host_summary_by_statement_type", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "statement", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "statement", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$innodb_buffer_stats_by_schema", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "data", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "data", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "pages", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_old", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_old", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_cached", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_cached", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$innodb_buffer_stats_by_table", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "data", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "data", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "pages", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_old", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "pages_old", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_cached", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_cached", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$innodb_lock_waits", + }, + Columns: []*catalog.Column{ + { + Name: "wait_started", + Type: ast.TypeName{Name: "datetime"}, + }, + { + Name: "wait_started", + Type: ast.TypeName{Name: "datetime"}, + }, + { + Name: "wait_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "wait_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "wait_age_secs", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "wait_age_secs", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "locked_table", + Type: ast.TypeName{Name: "mediumtext"}, + Length: toPointer(16777215), + }, + { + Name: "locked_table", + Type: ast.TypeName{Name: "mediumtext"}, + Length: toPointer(16777215), + }, + { + Name: "locked_table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_partition", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_partition", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_subpartition", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_table_subpartition", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_index", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_index", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "locked_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "locked_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "waiting_trx_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "waiting_trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_pid", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_pid", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "waiting_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "waiting_lock_id", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "waiting_lock_id", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "waiting_lock_mode", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_lock_mode", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_pid", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_pid", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "blocking_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "blocking_lock_id", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "blocking_lock_id", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "blocking_lock_mode", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_lock_mode", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_started", + Type: ast.TypeName{Name: "datetime"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "blocking_trx_age", + Type: ast.TypeName{Name: "time"}, + }, + { + Name: "blocking_trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_rows_locked", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_trx_rows_modified", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sql_kill_blocking_query", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(33), + }, + { + Name: "sql_kill_blocking_query", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(33), + }, + { + Name: "sql_kill_blocking_connection", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(27), + }, + { + Name: "sql_kill_blocking_connection", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(27), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$io_by_thread_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "processlist_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "processlist_id", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$io_global_by_file_by_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_write", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_write", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "write_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "write_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$io_global_by_file_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(512), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "read_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "read_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "write_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "write_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_misc", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_misc", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "misc_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "misc_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$io_global_by_wait_by_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_written", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_written", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "total_requested", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_requested", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$io_global_by_wait_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "read_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "read_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "write_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "write_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "misc_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "misc_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_read", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_read", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_written", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_written", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_written", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$latest_file_io", + }, + Columns: []*catalog.Column{ + { + Name: "thread", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(317), + }, + { + Name: "thread", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(317), + }, + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "file", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(512), + }, + { + Name: "latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "operation", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "operation", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "requested", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "requested", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$memory_by_host_by_current_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$memory_by_thread_by_current_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$memory_by_user_by_current_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_count_used", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_max_alloc", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$memory_global_by_current_bytes", + }, + Columns: []*catalog.Column{ + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "current_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_alloc", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_alloc", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "current_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "high_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "high_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "high_alloc", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "high_alloc", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "high_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "high_avg_alloc", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$memory_global_total", + }, + Columns: []*catalog.Column{ + { + Name: "total_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$processlist", + }, + Columns: []*catalog.Column{ + { + Name: "thd_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thd_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "conn_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "conn_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "command", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "command", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "time", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "time", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "current_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "execution_engine", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "execution_engine", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "progress", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "progress", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "last_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "last_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "last_statement_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "last_statement_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "last_wait", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "last_wait", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "last_wait_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(20), + }, + { + Name: "last_wait_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(20), + }, + { + Name: "source", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "source", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "trx_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "trx_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "trx_state", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "trx_state", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "trx_autocommit", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "trx_autocommit", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "program_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "program_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$ps_digest_95th_percentile_by_avg_us", + }, + Columns: []*catalog.Column{ + { + Name: "avg_us", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "avg_us", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "percentile", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "percentile", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$ps_digest_avg_latency_distribution", + }, + Columns: []*catalog.Column{ + { + Name: "cnt", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "cnt", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_us", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "avg_us", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$ps_schema_table_statistics_io", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "count_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_number_of_bytes_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_number_of_bytes_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_timer_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_timer_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "count_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_number_of_bytes_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_number_of_bytes_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_timer_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_timer_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "count_misc", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "count_misc", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_timer_misc", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "sum_timer_misc", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$schema_flattened_keys", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "non_unique", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "non_unique", + Type: ast.TypeName{Name: "int"}, + }, + { + Name: "subpart_exists", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "subpart_exists", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "index_columns", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "index_columns", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$schema_index_statistics", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "index_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "rows_selected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_selected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "select_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "select_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$schema_table_lock_waits", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "waiting_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "waiting_pid", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_pid", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_account", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "waiting_account", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "waiting_lock_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_lock_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_lock_duration", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_lock_duration", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "waiting_query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "waiting_query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "waiting_query_secs", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_secs", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "waiting_query_rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "blocking_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_thread_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "blocking_pid", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "blocking_pid", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "blocking_account", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "blocking_account", + Type: ast.TypeName{Name: "text"}, + Length: toPointer(65535), + }, + { + Name: "blocking_lock_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_lock_type", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_lock_duration", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "blocking_lock_duration", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(32), + }, + { + Name: "sql_kill_blocking_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(31), + }, + { + Name: "sql_kill_blocking_query", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(31), + }, + { + Name: "sql_kill_blocking_connection", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(25), + }, + { + Name: "sql_kill_blocking_connection", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(25), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$schema_table_statistics", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_fetched", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_fetched", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "fetch_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "fetch_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "io_read_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$schema_table_statistics_with_buffer", + }, + Columns: []*catalog.Column{ + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "table_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "rows_fetched", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_fetched", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "fetch_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "fetch_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_inserted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "insert_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_updated", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "update_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_deleted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "delete_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "io_read_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_read_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_write_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_requests", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_misc_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_data", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_data", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_free", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_free", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_pages", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages_hashed", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages_old", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_pages_old", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "innodb_buffer_rows_cached", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "innodb_buffer_rows_cached", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$schema_tables_with_full_table_scans", + }, + Columns: []*catalog.Column{ + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_schema", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "object_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "rows_full_scanned", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_full_scanned", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$session", + }, + Columns: []*catalog.Column{ + { + Name: "thd_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "thd_id", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "conn_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "conn_id", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(288), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "command", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "command", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(16), + }, + { + Name: "state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "state", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "time", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "time", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "current_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "execution_engine", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "execution_engine", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(9), + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "progress", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "progress", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(3), + }, + { + Name: "last_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "last_statement", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "last_statement_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "last_statement_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "last_wait", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "last_wait", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "last_wait_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(20), + }, + { + Name: "last_wait_latency", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(20), + }, + { + Name: "source", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "source", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "trx_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "trx_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "trx_state", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "trx_state", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(11), + }, + { + Name: "trx_autocommit", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "trx_autocommit", + Type: ast.TypeName{Name: "enum"}, + Length: toPointer(3), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "program_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + { + Name: "program_name", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(1024), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$statement_analysis", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_secondary_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_secondary_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "err_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "err_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warn_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warn_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_affected_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "tmp_disk_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sorted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sorted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_merge_passes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_merge_passes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_controlled_memory", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_controlled_memory", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_total_memory", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_total_memory", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$statements_with_errors_or_warnings", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "errors", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "errors", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "error_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "error_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "warnings", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warnings", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warning_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "warning_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$statements_with_full_table_scans", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_index_used_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_index_used_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_good_index_used_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_good_index_used_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "no_index_used_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "no_index_used_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$statements_with_runtimes_in_95th_percentile", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "full_scan", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "err_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "err_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warn_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "warn_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_sent_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "rows_examined_avg", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$statements_with_sorting", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_merge_passes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_merge_passes", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_sort_merges", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_sort_merges", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "sorts_using_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sorts_using_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_using_range", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "sort_using_range", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sorted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sorted", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_rows_sorted", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_rows_sorted", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$statements_with_temp_tables", + }, + Columns: []*catalog.Column{ + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "query", + Type: ast.TypeName{Name: "longtext"}, + Length: toPointer(4294967295), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "db", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "exec_count", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "memory_tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "memory_tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "disk_tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "disk_tmp_tables", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_tmp_tables_per_query", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_tmp_tables_per_query", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "tmp_tables_to_disk_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "tmp_tables_to_disk_pct", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "first_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "last_seen", + Type: ast.TypeName{Name: "timestamp"}, + IsNotNull: true, + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + { + Name: "digest", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$user_summary", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "statements", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statements", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "statement_avg_latency", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "statement_avg_latency", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "table_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "table_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_io_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "file_io_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_connections", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "unique_hosts", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "unique_hosts", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "current_memory", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_memory_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_memory_allocated", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$user_summary_by_file_io", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "ios", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "io_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$user_summary_by_file_io_type", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$user_summary_by_stages", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event_name", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$user_summary_by_statement_latency", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "decimal"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$user_summary_by_statement_type", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "statement", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "statement", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "lock_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "cpu_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_sent", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_examined", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "rows_affected", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "full_scans", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$wait_classes_global_by_avg_latency", + }, + Columns: []*catalog.Column{ + { + Name: "event_class", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "event_class", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$wait_classes_global_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "event_class", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "event_class", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "decimal"}, + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "min_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "decimal"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$waits_by_host_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "host", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(255), + }, + { + Name: "event", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$waits_by_user_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "user", + Type: ast.TypeName{Name: "varchar"}, + Length: toPointer(32), + }, + { + Name: "event", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "event", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "sys", + Name: "x$waits_global_by_latency", + }, + Columns: []*catalog.Column{ + { + Name: "events", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "events", + Type: ast.TypeName{Name: "varchar"}, + IsNotNull: true, + Length: toPointer(128), + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "total_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "avg_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + { + Name: "max_latency", + Type: ast.TypeName{Name: "bigint"}, + IsNotNull: true, + }, + }, + }, + } + return s +} From 627a099a75376eee9672f3451ac38ddddd0148cf Mon Sep 17 00:00:00 2001 From: Terri Cain Date: Thu, 13 Jun 2024 20:15:31 +0100 Subject: [PATCH 2/3] Created sqlc-dolphin-gen tool to dump MySQL catalog info --- Makefile | 3 + internal/codegen/golang/result.go | 25 ++- internal/engine/dolphin/catalog.go | 23 ++- internal/tools/sqlc-dolphin-gen/main.go | 218 ++++++++++++++++++++ internal/tools/sqlc-dolphin-gen/proc.go | 139 +++++++++++++ internal/tools/sqlc-dolphin-gen/relation.go | 106 ++++++++++ 6 files changed, 505 insertions(+), 9 deletions(-) create mode 100644 internal/tools/sqlc-dolphin-gen/main.go create mode 100644 internal/tools/sqlc-dolphin-gen/proc.go create mode 100644 internal/tools/sqlc-dolphin-gen/relation.go diff --git a/Makefile b/Makefile index e9c2fbb899..cb0f128a95 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,9 @@ sqlc-dev: sqlc-pg-gen: go build -o ~/bin/sqlc-pg-gen ./internal/tools/sqlc-pg-gen +sqlc-dolphin-gen: + go build -o ~/bin/sqlc-dolphin-gen ./internal/tools/sqlc-dolphin-gen + sqlc-gen-json: go build -o ~/bin/sqlc-gen-json ./cmd/sqlc-gen-json diff --git a/internal/codegen/golang/result.go b/internal/codegen/golang/result.go index 560e112af2..cbe9a047cb 100644 --- a/internal/codegen/golang/result.go +++ b/internal/codegen/golang/result.go @@ -3,6 +3,8 @@ package golang import ( "bufio" "fmt" + "log" + "slices" "sort" "strings" @@ -13,10 +15,27 @@ import ( "github.com/sqlc-dev/sqlc/internal/plugin" ) +// getSchemasToSkip Returns a list of schemas which should not be included in the generated output +func getSchemasToSkip(req *plugin.GenerateRequest) []string { + switch req.Settings.Engine { + case "postgresql": + return []string{"pg_catalog", "information_schema"} + case "mysql": + return []string{"information_schema", "performance_schema", "sys", "mysql"} + case "sqlite": + return []string{} + default: + log.Printf("WARN internal/codegen/golang/result.go:getSchemasToSkip unhandled engine: %s\n", req.Settings.Engine) + return []string{} + } +} + func buildEnums(req *plugin.GenerateRequest, options *opts.Options) []Enum { var enums []Enum + schemasToSkip := getSchemasToSkip(req) + for _, schema := range req.Catalog.Schemas { - if schema.Name == "pg_catalog" || schema.Name == "information_schema" { + if slices.Contains(schemasToSkip, schema.Name) { continue } for _, enum := range schema.Enums { @@ -62,8 +81,10 @@ func buildEnums(req *plugin.GenerateRequest, options *opts.Options) []Enum { func buildStructs(req *plugin.GenerateRequest, options *opts.Options) []Struct { var structs []Struct + schemasToSkip := getSchemasToSkip(req) + for _, schema := range req.Catalog.Schemas { - if schema.Name == "pg_catalog" || schema.Name == "information_schema" { + if slices.Contains(schemasToSkip, schema.Name) { continue } for _, table := range schema.Tables { diff --git a/internal/engine/dolphin/catalog.go b/internal/engine/dolphin/catalog.go index e7872f7c95..b72eec5bb2 100644 --- a/internal/engine/dolphin/catalog.go +++ b/internal/engine/dolphin/catalog.go @@ -4,13 +4,22 @@ import ( "github.com/sqlc-dev/sqlc/internal/sql/catalog" ) +// toPointer converts an int to a pointer without a temporary +// variable at the call-site, and is used by the generated schemas +func toPointer(x int) *int { + return &x +} + func NewCatalog() *catalog.Catalog { def := "public" // TODO: What is the default database for MySQL? - return &catalog.Catalog{ - DefaultSchema: def, - Schemas: []*catalog.Schema{ - defaultSchema(def), - }, - Extensions: map[string]struct{}{}, - } + + c := catalog.New(def) + // New() creates an empty schema which we'll replace with MySQL stdlib functions + c.Schemas[0] = defaultSchema(def) + c.Schemas = append(c.Schemas, genInformationSchema()) + c.Schemas = append(c.Schemas, genPerformanceSchema()) + c.Schemas = append(c.Schemas, genSysSchema()) + c.Schemas = append(c.Schemas, genMysqlCatalog()) + + return c } diff --git a/internal/tools/sqlc-dolphin-gen/main.go b/internal/tools/sqlc-dolphin-gen/main.go new file mode 100644 index 0000000000..39de7f8055 --- /dev/null +++ b/internal/tools/sqlc-dolphin-gen/main.go @@ -0,0 +1,218 @@ +package main + +import ( + "bytes" + "context" + "database/sql" + "flag" + "fmt" + "github.com/go-sql-driver/mysql" + "go/format" + "log" + "os" + "path/filepath" + "text/template" + + _ "github.com/go-sql-driver/mysql" +) + +const catalogTmpl = `// Code generated by sqlc-dolphin-gen. DO NOT EDIT. + +package {{.Pkg}} + +import ( + "github.com/sqlc-dev/sqlc/internal/sql/ast" + "github.com/sqlc-dev/sqlc/internal/sql/catalog" +) + +var funcs{{.GenFnName}} = []*catalog.Function { + {{- range .Procs}} + { + Name: "{{.Name}}", + Args: []*catalog.Argument{ + {{range .Args}}{ + Name: "{{.Name}}", + Type: &ast.TypeName{Name: "{{.Type}}"}, + {{- if ne .Mode "IN" }} + Mode: {{ .GoMode }}, + {{- end}} + }, + {{end}} + }, + {{- if ne .ReturnType "" }} + ReturnType: &ast.TypeName{Name: "{{.ReturnType}}"}, + {{end}} + }, + {{- end}} +} + +func {{.GenFnName}}() *catalog.Schema { + s := &catalog.Schema{Name: "{{ .SchemaName }}"} + s.Funcs = funcs{{.GenFnName}} + {{- if .Relations }} + s.Tables = []*catalog.Table { + {{- range .Relations }} + { + Rel: &ast.TableName{ + Catalog: "public", + Schema: "{{.SchemaName}}", + Name: "{{.Name}}", + }, + Columns: []*catalog.Column{ + {{- range .Columns}} + { + Name: "{{.Name}}", + Type: ast.TypeName{Name: "{{.Type}}"}, + {{- if .IsNotNull}} + IsNotNull: true, + {{- end}} + {{- if .Length }} + Length: toPointer({{ .Length }}), + {{- end}} + }, + {{- end}} + }, + }, + {{- end}} + } + {{- end }} + return s +} +` + +type tmplCtx struct { + Pkg string + GenFnName string + SchemaName string + Procs []Proc + Relations []Relation +} + +func main() { + if err := run(context.Background()); err != nil { + log.Fatal(err) + } +} + +func getEnvOrDefault(env, defaultValue string) string { + result := os.Getenv(env) + if result == "" { + return defaultValue + } + return result +} + +func databaseURL() string { + dburl := os.Getenv("DATABASE_URL") + if dburl != "" { + return dburl + } + mysqlHost := getEnvOrDefault("MYSQL_HOST", "127.0.0.1") + mysqlPort := getEnvOrDefault("MYSQL_PORT", "3306") + + config := mysql.Config{ + User: getEnvOrDefault("MYSQL_USER", "root"), + Passwd: getEnvOrDefault("MYSQL_PASSWORD", "mysecretpassword"), + Addr: fmt.Sprintf("%s:%s", mysqlHost, mysqlPort), + DBName: getEnvOrDefault("MYSQL_DATABASE", ""), + } + + return config.FormatDSN() +} + +func run(ctx context.Context) error { + flag.Parse() + + dir := flag.Arg(0) + if dir == "" { + dir = filepath.Join("internal", "engine", "dolphin") + } + + tmpl, err := template.New("").Parse(catalogTmpl) + if err != nil { + return err + } + conn, err := sql.Open("mysql", databaseURL()) + if err != nil { + return err + } + defer conn.Close() + + schemas := []schemaToLoad{ + { + Name: "mysql", // Is also mysql when running in MariaDB + GenFnName: "genMysqlCatalog", + DestPath: filepath.Join(dir, "mysql_catalog.go"), + }, + { + Name: "information_schema", + GenFnName: "genInformationSchema", + DestPath: filepath.Join(dir, "information_schema.go"), + }, + { + Name: "performance_schema", + GenFnName: "genPerformanceSchema", + DestPath: filepath.Join(dir, "performance_schema.go"), + }, + { + Name: "sys", + GenFnName: "genSysSchema", + DestPath: filepath.Join(dir, "sys_schema.go"), + }, + } + + for _, schema := range schemas { + procs, err := readProcs(ctx, conn, schema.Name) + if err != nil { + return err + } + + relations, err := readRelations(ctx, conn, schema.Name) + if err != nil { + return err + } + + err = writeFormattedGo(tmpl, tmplCtx{ + Pkg: "dolphin", + SchemaName: schema.Name, + GenFnName: schema.GenFnName, + Procs: procs, + Relations: relations, + }, schema.DestPath) + + if err != nil { + return err + } + } + + return nil +} + +// writeFormattedGo executes `tmpl` with `data` as its context to the file `destPath` +func writeFormattedGo(tmpl *template.Template, data any, destPath string) error { + out := bytes.NewBuffer([]byte{}) + err := tmpl.Execute(out, data) + if err != nil { + return err + } + code, err := format.Source(out.Bytes()) + if err != nil { + return err + } + + err = os.WriteFile(destPath, code, 0644) + if err != nil { + return err + } + + return nil +} + +type schemaToLoad struct { + // name is the name of a schema to load + Name string + // DestPath is the destination for the generate file + DestPath string + // The name of the function to generate for loading this schema + GenFnName string +} diff --git a/internal/tools/sqlc-dolphin-gen/proc.go b/internal/tools/sqlc-dolphin-gen/proc.go new file mode 100644 index 0000000000..8c2f6b8d97 --- /dev/null +++ b/internal/tools/sqlc-dolphin-gen/proc.go @@ -0,0 +1,139 @@ +package main + +import ( + "context" + "database/sql" + "strings" +) + +const catalogFuncs = ` +SELECT + r.ROUTINE_SCHEMA AS "schema", + r.SPECIFIC_NAME AS "name", + r.ROUTINE_TYPE AS "routine_type", -- FUNCTION or PROCEDURE + r.DATA_TYPE AS "return_type", + p.ORDINAL_POSITION AS "param_position", + p.PARAMETER_MODE AS "param_direction", -- IN or OUT + p.PARAMETER_NAME AS "param_name", + p.DATA_TYPE AS "param_type" +FROM information_schema.ROUTINES r +LEFT OUTER JOIN information_schema.PARAMETERS p ON (r.ROUTINE_SCHEMA = p.SPECIFIC_SCHEMA AND r.SPECIFIC_NAME = p.SPECIFIC_NAME) + +WHERE ROUTINE_SCHEMA = ? +AND p.PARAMETER_MODE IS NOT NULL -- this looks like parameter 0 of a function (not procedure) is a copy of the return type from ROUTINES +-- simply order all columns to keep subsequent runs stable +ORDER BY 1,2,3,4,5,6,7,8; +` + +type routineRow struct { + Schema string + Name string + Type string + ReturnType *string + ParamPosition *int + ParamDirection *string + ParamName *string + ParamType *string +} + +type Proc struct { + Name string + ReturnType string + ArgTypes []string + ArgNames []string + ArgModes []string +} + +func (p *Proc) Args() []Arg { + var args []Arg + + for i, argType := range p.ArgTypes { + mode := "i" + name := "" + if i < len(p.ArgModes) { + mode = p.ArgModes[i] + } + if i < len(p.ArgNames) { + name = p.ArgNames[i] + } + + args = append(args, Arg{ + Name: name, + Type: argType, + Mode: mode, + }) + } + + return args +} + +func (a *Arg) GoMode() string { + switch a.Mode { + case "", "IN": + return "ast.FuncParamIn" + case "OUT": + return "ast.FuncParamOut" + } + + return "" +} + +type Arg struct { + Name string + Mode string + Type string +} + +func scanProcs(rows *sql.Rows) ([]Proc, error) { + defer rows.Close() + + var procs []Proc + var prevProc *Proc + + for rows.Next() { + // Read all rows for a given proc, make up the function + var rowData routineRow + err := rows.Scan( + &rowData.Schema, + &rowData.Name, + &rowData.Type, + &rowData.ReturnType, + &rowData.ParamPosition, + &rowData.ParamDirection, + &rowData.ParamName, + &rowData.ParamType, + ) + if err != nil { + return nil, err + } + + if prevProc == nil || rowData.Name != prevProc.Name { + p := Proc{ + Name: strings.ToLower(rowData.Name), + } + if rowData.ReturnType != nil && *rowData.ReturnType != "" { + p.ReturnType = *rowData.ReturnType + } + + procs = append(procs, p) + prevProc = &procs[len(procs)-1] + } + + if rowData.ParamPosition != nil { + prevProc.ArgNames = append(prevProc.ArgNames, *rowData.ParamName) + prevProc.ArgTypes = append(prevProc.ArgTypes, *rowData.ParamType) + prevProc.ArgModes = append(prevProc.ArgModes, *rowData.ParamDirection) + } + } + + return procs, rows.Err() +} + +func readProcs(ctx context.Context, conn *sql.DB, schemaName string) ([]Proc, error) { + rows, err := conn.Query(catalogFuncs, schemaName) + if err != nil { + return nil, err + } + + return scanProcs(rows) +} diff --git a/internal/tools/sqlc-dolphin-gen/relation.go b/internal/tools/sqlc-dolphin-gen/relation.go new file mode 100644 index 0000000000..56b4930d9d --- /dev/null +++ b/internal/tools/sqlc-dolphin-gen/relation.go @@ -0,0 +1,106 @@ +package main + +import ( + "context" + "database/sql" + "strings" +) + +const relationQuery = ` +WITH relations AS ( + SELECT TABLE_SCHEMA, TABLE_NAME FROM information_schema.TABLES + UNION ALL + SELECT TABLE_SCHEMA, TABLE_NAME FROM information_schema.VIEWS +) +SELECT + c.TABLE_SCHEMA, + c.TABLE_NAME, + c.ORDINAL_POSITION, + c.COLUMN_NAME, + c.IS_NULLABLE = 'YES', + c.DATA_TYPE, + c.CHARACTER_MAXIMUM_LENGTH +FROM relations r +LEFT JOIN information_schema.COLUMNS c ON (r.TABLE_SCHEMA = c.TABLE_SCHEMA AND r.TABLE_NAME = c.TABLE_NAME) + +WHERE c.TABLE_SCHEMA = ? +ORDER BY 1,2,3,4,5,6,7; +` + +type Relation struct { + SchemaName string + Name string + Columns []RelationColumn +} + +type RelationColumn struct { + Name string + Type string + IsNotNull bool + Length *int +} + +type tableRow struct { + Schema string + Name string + Position int + ColumnName string + IsNullable bool + Type string + Length *int +} + +func scanRelations(rows *sql.Rows) ([]Relation, error) { + defer rows.Close() + // Iterate through the result set + var relations []Relation + var prevRel *Relation + + for rows.Next() { + var rowData tableRow + err := rows.Scan( + &rowData.Schema, + &rowData.Name, + &rowData.Position, + &rowData.ColumnName, + &rowData.IsNullable, + &rowData.Type, + &rowData.Length, + ) + if err != nil { + return nil, err + } + + if prevRel == nil || rowData.Name != prevRel.Name { + // We are on the same table, just keep adding columns + r := Relation{ + SchemaName: strings.ToLower(rowData.Schema), + + // Doing SELECT * FROM information_schema.TABLES looks for `tables` lowercase + // when resolving queries + Name: strings.ToLower(rowData.Name), + } + + relations = append(relations, r) + prevRel = &relations[len(relations)-1] + } + + prevRel.Columns = append(prevRel.Columns, RelationColumn{ + Name: rowData.ColumnName, + Type: rowData.Type, + IsNotNull: !rowData.IsNullable, + Length: rowData.Length, + }) + } + + return relations, rows.Err() +} + +func readRelations(ctx context.Context, conn *sql.DB, schemaName string) ([]Relation, error) { + rows, err := conn.Query(relationQuery, schemaName) + if err != nil { + return nil, err + } + + return scanRelations(rows) +} From ce89a873db1a1f6f6487fb3bd61bb4b8ccf35275 Mon Sep 17 00:00:00 2001 From: Terri Cain Date: Thu, 13 Jun 2024 20:15:56 +0100 Subject: [PATCH 3/3] Fixed typo --- internal/tools/sqlc-pg-gen/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tools/sqlc-pg-gen/main.go b/internal/tools/sqlc-pg-gen/main.go index d70dcb9595..c828ba5bfd 100644 --- a/internal/tools/sqlc-pg-gen/main.go +++ b/internal/tools/sqlc-pg-gen/main.go @@ -370,7 +370,7 @@ func run(ctx context.Context) error { type schemaToLoad struct { // name is the name of a schema to load Name string - // DestPath is the desination for the generate file + // DestPath is the destination for the generate file DestPath string // The name of the function to generate for loading this schema GenFnName string