dbt-adapters 0.1.0a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dbt-adapters might be problematic. Click here for more details.

Files changed (147) hide show
  1. dbt/__init__.py +0 -0
  2. dbt/adapters/__about__.py +1 -0
  3. dbt/adapters/__init__.py +7 -0
  4. dbt/adapters/base/README.md +13 -0
  5. dbt/adapters/base/__init__.py +15 -0
  6. dbt/adapters/base/column.py +166 -0
  7. dbt/adapters/base/connections.py +426 -0
  8. dbt/adapters/base/impl.py +1654 -0
  9. dbt/adapters/base/meta.py +131 -0
  10. dbt/adapters/base/plugin.py +32 -0
  11. dbt/adapters/base/query_headers.py +101 -0
  12. dbt/adapters/base/relation.py +471 -0
  13. dbt/adapters/cache.py +521 -0
  14. dbt/adapters/capability.py +52 -0
  15. dbt/adapters/clients/__init__.py +0 -0
  16. dbt/adapters/clients/jinja.py +24 -0
  17. dbt/adapters/contracts/__init__.py +0 -0
  18. dbt/adapters/contracts/connection.py +228 -0
  19. dbt/adapters/contracts/macros.py +11 -0
  20. dbt/adapters/contracts/relation.py +125 -0
  21. dbt/adapters/events/README.md +57 -0
  22. dbt/adapters/events/__init__.py +0 -0
  23. dbt/adapters/events/adapter_types.proto +517 -0
  24. dbt/adapters/events/adapter_types_pb2.py +208 -0
  25. dbt/adapters/events/base_types.py +40 -0
  26. dbt/adapters/events/logging.py +83 -0
  27. dbt/adapters/events/types.py +423 -0
  28. dbt/adapters/exceptions/__init__.py +40 -0
  29. dbt/adapters/exceptions/alias.py +24 -0
  30. dbt/adapters/exceptions/cache.py +68 -0
  31. dbt/adapters/exceptions/compilation.py +255 -0
  32. dbt/adapters/exceptions/connection.py +16 -0
  33. dbt/adapters/exceptions/database.py +51 -0
  34. dbt/adapters/factory.py +246 -0
  35. dbt/adapters/protocol.py +173 -0
  36. dbt/adapters/reference_keys.py +39 -0
  37. dbt/adapters/relation_configs/README.md +25 -0
  38. dbt/adapters/relation_configs/__init__.py +12 -0
  39. dbt/adapters/relation_configs/config_base.py +44 -0
  40. dbt/adapters/relation_configs/config_change.py +24 -0
  41. dbt/adapters/relation_configs/config_validation.py +57 -0
  42. dbt/adapters/sql/__init__.py +2 -0
  43. dbt/adapters/sql/connections.py +195 -0
  44. dbt/adapters/sql/impl.py +273 -0
  45. dbt/adapters/utils.py +69 -0
  46. dbt/include/global_project/__init__.py +4 -0
  47. dbt/include/global_project/dbt_project.yml +7 -0
  48. dbt/include/global_project/docs/overview.md +43 -0
  49. dbt/include/global_project/macros/adapters/apply_grants.sql +167 -0
  50. dbt/include/global_project/macros/adapters/columns.sql +137 -0
  51. dbt/include/global_project/macros/adapters/freshness.sql +16 -0
  52. dbt/include/global_project/macros/adapters/indexes.sql +41 -0
  53. dbt/include/global_project/macros/adapters/metadata.sql +96 -0
  54. dbt/include/global_project/macros/adapters/persist_docs.sql +33 -0
  55. dbt/include/global_project/macros/adapters/relation.sql +79 -0
  56. dbt/include/global_project/macros/adapters/schema.sql +20 -0
  57. dbt/include/global_project/macros/adapters/show.sql +22 -0
  58. dbt/include/global_project/macros/adapters/timestamps.sql +44 -0
  59. dbt/include/global_project/macros/adapters/validate_sql.sql +10 -0
  60. dbt/include/global_project/macros/etc/datetime.sql +62 -0
  61. dbt/include/global_project/macros/etc/statement.sql +52 -0
  62. dbt/include/global_project/macros/generic_test_sql/accepted_values.sql +27 -0
  63. dbt/include/global_project/macros/generic_test_sql/not_null.sql +9 -0
  64. dbt/include/global_project/macros/generic_test_sql/relationships.sql +23 -0
  65. dbt/include/global_project/macros/generic_test_sql/unique.sql +12 -0
  66. dbt/include/global_project/macros/get_custom_name/get_custom_alias.sql +36 -0
  67. dbt/include/global_project/macros/get_custom_name/get_custom_database.sql +32 -0
  68. dbt/include/global_project/macros/get_custom_name/get_custom_schema.sql +60 -0
  69. dbt/include/global_project/macros/materializations/configs.sql +21 -0
  70. dbt/include/global_project/macros/materializations/hooks.sql +35 -0
  71. dbt/include/global_project/macros/materializations/models/clone/can_clone_table.sql +7 -0
  72. dbt/include/global_project/macros/materializations/models/clone/clone.sql +67 -0
  73. dbt/include/global_project/macros/materializations/models/clone/create_or_replace_clone.sql +7 -0
  74. dbt/include/global_project/macros/materializations/models/incremental/column_helpers.sql +80 -0
  75. dbt/include/global_project/macros/materializations/models/incremental/incremental.sql +92 -0
  76. dbt/include/global_project/macros/materializations/models/incremental/is_incremental.sql +13 -0
  77. dbt/include/global_project/macros/materializations/models/incremental/merge.sql +131 -0
  78. dbt/include/global_project/macros/materializations/models/incremental/on_schema_change.sql +144 -0
  79. dbt/include/global_project/macros/materializations/models/incremental/strategies.sql +79 -0
  80. dbt/include/global_project/macros/materializations/models/materialized_view.sql +121 -0
  81. dbt/include/global_project/macros/materializations/models/table.sql +64 -0
  82. dbt/include/global_project/macros/materializations/models/view.sql +72 -0
  83. dbt/include/global_project/macros/materializations/seeds/helpers.sql +128 -0
  84. dbt/include/global_project/macros/materializations/seeds/seed.sql +60 -0
  85. dbt/include/global_project/macros/materializations/snapshots/helpers.sql +181 -0
  86. dbt/include/global_project/macros/materializations/snapshots/snapshot.sql +99 -0
  87. dbt/include/global_project/macros/materializations/snapshots/snapshot_merge.sql +25 -0
  88. dbt/include/global_project/macros/materializations/snapshots/strategies.sql +174 -0
  89. dbt/include/global_project/macros/materializations/tests/helpers.sql +14 -0
  90. dbt/include/global_project/macros/materializations/tests/test.sql +60 -0
  91. dbt/include/global_project/macros/materializations/tests/where_subquery.sql +15 -0
  92. dbt/include/global_project/macros/python_model/python.sql +103 -0
  93. dbt/include/global_project/macros/relations/column/columns_spec_ddl.sql +89 -0
  94. dbt/include/global_project/macros/relations/create.sql +23 -0
  95. dbt/include/global_project/macros/relations/create_backup.sql +17 -0
  96. dbt/include/global_project/macros/relations/create_intermediate.sql +17 -0
  97. dbt/include/global_project/macros/relations/drop.sql +41 -0
  98. dbt/include/global_project/macros/relations/drop_backup.sql +14 -0
  99. dbt/include/global_project/macros/relations/materialized_view/alter.sql +55 -0
  100. dbt/include/global_project/macros/relations/materialized_view/create.sql +10 -0
  101. dbt/include/global_project/macros/relations/materialized_view/drop.sql +14 -0
  102. dbt/include/global_project/macros/relations/materialized_view/refresh.sql +9 -0
  103. dbt/include/global_project/macros/relations/materialized_view/rename.sql +10 -0
  104. dbt/include/global_project/macros/relations/materialized_view/replace.sql +10 -0
  105. dbt/include/global_project/macros/relations/rename.sql +35 -0
  106. dbt/include/global_project/macros/relations/rename_intermediate.sql +14 -0
  107. dbt/include/global_project/macros/relations/replace.sql +50 -0
  108. dbt/include/global_project/macros/relations/schema.sql +8 -0
  109. dbt/include/global_project/macros/relations/table/create.sql +60 -0
  110. dbt/include/global_project/macros/relations/table/drop.sql +14 -0
  111. dbt/include/global_project/macros/relations/table/rename.sql +10 -0
  112. dbt/include/global_project/macros/relations/table/replace.sql +10 -0
  113. dbt/include/global_project/macros/relations/view/create.sql +27 -0
  114. dbt/include/global_project/macros/relations/view/drop.sql +14 -0
  115. dbt/include/global_project/macros/relations/view/rename.sql +10 -0
  116. dbt/include/global_project/macros/relations/view/replace.sql +66 -0
  117. dbt/include/global_project/macros/utils/any_value.sql +9 -0
  118. dbt/include/global_project/macros/utils/array_append.sql +8 -0
  119. dbt/include/global_project/macros/utils/array_concat.sql +7 -0
  120. dbt/include/global_project/macros/utils/array_construct.sql +12 -0
  121. dbt/include/global_project/macros/utils/bool_or.sql +9 -0
  122. dbt/include/global_project/macros/utils/cast_bool_to_text.sql +7 -0
  123. dbt/include/global_project/macros/utils/concat.sql +7 -0
  124. dbt/include/global_project/macros/utils/data_types.sql +129 -0
  125. dbt/include/global_project/macros/utils/date_spine.sql +75 -0
  126. dbt/include/global_project/macros/utils/date_trunc.sql +7 -0
  127. dbt/include/global_project/macros/utils/dateadd.sql +14 -0
  128. dbt/include/global_project/macros/utils/datediff.sql +14 -0
  129. dbt/include/global_project/macros/utils/escape_single_quotes.sql +8 -0
  130. dbt/include/global_project/macros/utils/except.sql +9 -0
  131. dbt/include/global_project/macros/utils/generate_series.sql +53 -0
  132. dbt/include/global_project/macros/utils/hash.sql +7 -0
  133. dbt/include/global_project/macros/utils/intersect.sql +9 -0
  134. dbt/include/global_project/macros/utils/last_day.sql +15 -0
  135. dbt/include/global_project/macros/utils/length.sql +11 -0
  136. dbt/include/global_project/macros/utils/listagg.sql +30 -0
  137. dbt/include/global_project/macros/utils/literal.sql +7 -0
  138. dbt/include/global_project/macros/utils/position.sql +11 -0
  139. dbt/include/global_project/macros/utils/replace.sql +14 -0
  140. dbt/include/global_project/macros/utils/right.sql +12 -0
  141. dbt/include/global_project/macros/utils/safe_cast.sql +9 -0
  142. dbt/include/global_project/macros/utils/split_part.sql +26 -0
  143. dbt/include/global_project/tests/generic/builtin.sql +30 -0
  144. dbt_adapters-0.1.0a1.dist-info/METADATA +81 -0
  145. dbt_adapters-0.1.0a1.dist-info/RECORD +147 -0
  146. dbt_adapters-0.1.0a1.dist-info/WHEEL +4 -0
  147. dbt_adapters-0.1.0a1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,208 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: adapter_types.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
16
+ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
17
+
18
+
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
20
+ b'\n\x13\x61\x64\x61pter_types.proto\x12\x0bproto_types\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto"\xab\x02\n\x16\x41\x64\x61pterCommonEventInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12\x0b\n\x03msg\x18\x03 \x01(\t\x12\r\n\x05level\x18\x04 \x01(\t\x12\x15\n\rinvocation_id\x18\x05 \x01(\t\x12\x0b\n\x03pid\x18\x06 \x01(\x05\x12\x0e\n\x06thread\x18\x07 \x01(\t\x12&\n\x02ts\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x05\x65xtra\x18\t \x03(\x0b\x32..proto_types.AdapterCommonEventInfo.ExtraEntry\x12\x10\n\x08\x63\x61tegory\x18\n \x01(\t\x1a,\n\nExtraEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"]\n\x13\x41\x64\x61pterNodeRelation\x12\x10\n\x08\x64\x61tabase\x18\n \x01(\t\x12\x0e\n\x06schema\x18\x0b \x01(\t\x12\r\n\x05\x61lias\x18\x0c \x01(\t\x12\x15\n\rrelation_name\x18\r \x01(\t"\x9f\x02\n\x0f\x41\x64\x61pterNodeInfo\x12\x11\n\tnode_path\x18\x01 \x01(\t\x12\x11\n\tnode_name\x18\x02 \x01(\t\x12\x11\n\tunique_id\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\x12\x14\n\x0cmaterialized\x18\x05 \x01(\t\x12\x13\n\x0bnode_status\x18\x06 \x01(\t\x12\x17\n\x0fnode_started_at\x18\x07 \x01(\t\x12\x18\n\x10node_finished_at\x18\x08 \x01(\t\x12%\n\x04meta\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x37\n\rnode_relation\x18\n \x01(\x0b\x32 .proto_types.AdapterNodeRelation"G\n\x0fReferenceKeyMsg\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\x12\x12\n\nidentifier\x18\x03 \x01(\t"?\n\x19\x41\x64\x61pterDeprecationWarning\x12\x10\n\x08old_name\x18\x01 \x01(\t\x12\x10\n\x08new_name\x18\x02 \x01(\t"\x87\x01\n\x1c\x41\x64\x61pterDeprecationWarningMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x34\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32&.proto_types.AdapterDeprecationWarning"!\n\x1f\x43ollectFreshnessReturnSignature"\x93\x01\n"CollectFreshnessReturnSignatureMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12:\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32,.proto_types.CollectFreshnessReturnSignature"\x8e\x01\n\x11\x41\x64\x61pterEventDebug\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x62\x61se_msg\x18\x03 \x01(\t\x12(\n\x04\x61rgs\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue"w\n\x14\x41\x64\x61pterEventDebugMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.AdapterEventDebug"\x8d\x01\n\x10\x41\x64\x61pterEventInfo\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x62\x61se_msg\x18\x03 \x01(\t\x12(\n\x04\x61rgs\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue"u\n\x13\x41\x64\x61pterEventInfoMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.proto_types.AdapterEventInfo"\x90\x01\n\x13\x41\x64\x61pterEventWarning\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x62\x61se_msg\x18\x03 \x01(\t\x12(\n\x04\x61rgs\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue"{\n\x16\x41\x64\x61pterEventWarningMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.AdapterEventWarning"\xa0\x01\n\x11\x41\x64\x61pterEventError\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x62\x61se_msg\x18\x03 \x01(\t\x12(\n\x04\x61rgs\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue\x12\x10\n\x08\x65xc_info\x18\x05 \x01(\t"w\n\x14\x41\x64\x61pterEventErrorMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.AdapterEventError"f\n\rNewConnection\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_type\x18\x02 \x01(\t\x12\x11\n\tconn_name\x18\x03 \x01(\t"o\n\x10NewConnectionMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12(\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1a.proto_types.NewConnection"=\n\x10\x43onnectionReused\x12\x11\n\tconn_name\x18\x01 \x01(\t\x12\x16\n\x0eorig_conn_name\x18\x02 \x01(\t"u\n\x13\x43onnectionReusedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.proto_types.ConnectionReused"0\n\x1b\x43onnectionLeftOpenInCleanup\x12\x11\n\tconn_name\x18\x01 \x01(\t"\x8b\x01\n\x1e\x43onnectionLeftOpenInCleanupMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x36\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32(.proto_types.ConnectionLeftOpenInCleanup".\n\x19\x43onnectionClosedInCleanup\x12\x11\n\tconn_name\x18\x01 \x01(\t"\x87\x01\n\x1c\x43onnectionClosedInCleanupMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x34\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32&.proto_types.ConnectionClosedInCleanup"f\n\x0eRollbackFailed\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t\x12\x10\n\x08\x65xc_info\x18\x03 \x01(\t"q\n\x11RollbackFailedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.RollbackFailed"V\n\x10\x43onnectionClosed\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t"u\n\x13\x43onnectionClosedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.proto_types.ConnectionClosed"X\n\x12\x43onnectionLeftOpen\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t"y\n\x15\x43onnectionLeftOpenMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12-\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.proto_types.ConnectionLeftOpen"N\n\x08Rollback\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t"e\n\x0bRollbackMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12#\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x15.proto_types.Rollback"@\n\tCacheMiss\x12\x11\n\tconn_name\x18\x01 \x01(\t\x12\x10\n\x08\x64\x61tabase\x18\x02 \x01(\t\x12\x0e\n\x06schema\x18\x03 \x01(\t"g\n\x0c\x43\x61\x63heMissMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12$\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x16.proto_types.CacheMiss"b\n\rListRelations\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\x12/\n\trelations\x18\x03 \x03(\x0b\x32\x1c.proto_types.ReferenceKeyMsg"o\n\x10ListRelationsMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12(\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1a.proto_types.ListRelations"g\n\x0e\x43onnectionUsed\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_type\x18\x02 \x01(\t\x12\x11\n\tconn_name\x18\x03 \x01(\t"q\n\x11\x43onnectionUsedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.ConnectionUsed"[\n\x08SQLQuery\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t\x12\x0b\n\x03sql\x18\x03 \x01(\t"e\n\x0bSQLQueryMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12#\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x15.proto_types.SQLQuery"b\n\x0eSQLQueryStatus\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0e\n\x06status\x18\x02 \x01(\t\x12\x0f\n\x07\x65lapsed\x18\x03 \x01(\x02"q\n\x11SQLQueryStatusMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.SQLQueryStatus"O\n\tSQLCommit\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t"g\n\x0cSQLCommitMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12$\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x16.proto_types.SQLCommit"a\n\rColTypeChange\x12\x11\n\torig_type\x18\x01 \x01(\t\x12\x10\n\x08new_type\x18\x02 \x01(\t\x12+\n\x05table\x18\x03 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg"o\n\x10\x43olTypeChangeMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12(\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1a.proto_types.ColTypeChange"@\n\x0eSchemaCreation\x12.\n\x08relation\x18\x01 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg"q\n\x11SchemaCreationMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.SchemaCreation"<\n\nSchemaDrop\x12.\n\x08relation\x18\x01 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg"i\n\rSchemaDropMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12%\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.proto_types.SchemaDrop"\xde\x01\n\x0b\x43\x61\x63heAction\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\x12-\n\x07ref_key\x18\x02 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\x12/\n\tref_key_2\x18\x03 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\x12/\n\tref_key_3\x18\x04 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\x12.\n\x08ref_list\x18\x05 \x03(\x0b\x32\x1c.proto_types.ReferenceKeyMsg"k\n\x0e\x43\x61\x63heActionMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12&\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x18.proto_types.CacheAction"\x98\x01\n\x0e\x43\x61\x63heDumpGraph\x12\x33\n\x04\x64ump\x18\x01 \x03(\x0b\x32%.proto_types.CacheDumpGraph.DumpEntry\x12\x14\n\x0c\x62\x65\x66ore_after\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x1a+\n\tDumpEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"q\n\x11\x43\x61\x63heDumpGraphMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.CacheDumpGraph"B\n\x11\x41\x64\x61pterRegistered\x12\x14\n\x0c\x61\x64\x61pter_name\x18\x01 \x01(\t\x12\x17\n\x0f\x61\x64\x61pter_version\x18\x02 \x01(\t"w\n\x14\x41\x64\x61pterRegisteredMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.AdapterRegistered"!\n\x12\x41\x64\x61pterImportError\x12\x0b\n\x03\x65xc\x18\x01 \x01(\t"y\n\x15\x41\x64\x61pterImportErrorMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12-\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.proto_types.AdapterImportError"#\n\x0fPluginLoadError\x12\x10\n\x08\x65xc_info\x18\x01 \x01(\t"s\n\x12PluginLoadErrorMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12*\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1c.proto_types.PluginLoadError"a\n\x14NewConnectionOpening\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x18\n\x10\x63onnection_state\x18\x02 \x01(\t"}\n\x17NewConnectionOpeningMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12/\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32!.proto_types.NewConnectionOpening"8\n\rCodeExecution\x12\x11\n\tconn_name\x18\x01 \x01(\t\x12\x14\n\x0c\x63ode_content\x18\x02 \x01(\t"o\n\x10\x43odeExecutionMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12(\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1a.proto_types.CodeExecution"6\n\x13\x43odeExecutionStatus\x12\x0e\n\x06status\x18\x01 \x01(\t\x12\x0f\n\x07\x65lapsed\x18\x02 \x01(\x02"{\n\x16\x43odeExecutionStatusMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.CodeExecutionStatus"%\n\x16\x43\x61talogGenerationError\x12\x0b\n\x03\x65xc\x18\x01 \x01(\t"\x81\x01\n\x19\x43\x61talogGenerationErrorMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x31\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32#.proto_types.CatalogGenerationError"-\n\x13WriteCatalogFailure\x12\x16\n\x0enum_exceptions\x18\x01 \x01(\x05"{\n\x16WriteCatalogFailureMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.WriteCatalogFailure"\x1e\n\x0e\x43\x61talogWritten\x12\x0c\n\x04path\x18\x01 \x01(\t"q\n\x11\x43\x61talogWrittenMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.CatalogWritten"\x14\n\x12\x43\x61nnotGenerateDocs"y\n\x15\x43\x61nnotGenerateDocsMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12-\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.proto_types.CannotGenerateDocs"\x11\n\x0f\x42uildingCatalog"s\n\x12\x42uildingCatalogMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12*\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1c.proto_types.BuildingCatalog"-\n\x18\x44\x61tabaseErrorRunningHook\x12\x11\n\thook_type\x18\x01 \x01(\t"\x85\x01\n\x1b\x44\x61tabaseErrorRunningHookMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x33\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32%.proto_types.DatabaseErrorRunningHook"4\n\x0cHooksRunning\x12\x11\n\tnum_hooks\x18\x01 \x01(\x05\x12\x11\n\thook_type\x18\x02 \x01(\t"m\n\x0fHooksRunningMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.proto_types.HooksRunning"T\n\x14\x46inishedRunningStats\x12\x11\n\tstat_line\x18\x01 \x01(\t\x12\x11\n\texecution\x18\x02 \x01(\t\x12\x16\n\x0e\x65xecution_time\x18\x03 \x01(\x02"}\n\x17\x46inishedRunningStatsMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12/\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32!.proto_types.FinishedRunningStats"<\n\x15\x43onstraintNotEnforced\x12\x12\n\nconstraint\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x61pter\x18\x02 \x01(\t"\x7f\n\x18\x43onstraintNotEnforcedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x30\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32".proto_types.ConstraintNotEnforced"=\n\x16\x43onstraintNotSupported\x12\x12\n\nconstraint\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x61pter\x18\x02 \x01(\t"\x81\x01\n\x19\x43onstraintNotSupportedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x31\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32#.proto_types.ConstraintNotSupportedb\x06proto3'
21
+ )
22
+
23
+ _globals = globals()
24
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
25
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "adapter_types_pb2", _globals)
26
+ if _descriptor._USE_C_DESCRIPTORS == False:
27
+ DESCRIPTOR._options = None
28
+ _ADAPTERCOMMONEVENTINFO_EXTRAENTRY._options = None
29
+ _ADAPTERCOMMONEVENTINFO_EXTRAENTRY._serialized_options = b"8\001"
30
+ _CACHEDUMPGRAPH_DUMPENTRY._options = None
31
+ _CACHEDUMPGRAPH_DUMPENTRY._serialized_options = b"8\001"
32
+ _globals["_ADAPTERCOMMONEVENTINFO"]._serialized_start = 100
33
+ _globals["_ADAPTERCOMMONEVENTINFO"]._serialized_end = 399
34
+ _globals["_ADAPTERCOMMONEVENTINFO_EXTRAENTRY"]._serialized_start = 355
35
+ _globals["_ADAPTERCOMMONEVENTINFO_EXTRAENTRY"]._serialized_end = 399
36
+ _globals["_ADAPTERNODERELATION"]._serialized_start = 401
37
+ _globals["_ADAPTERNODERELATION"]._serialized_end = 494
38
+ _globals["_ADAPTERNODEINFO"]._serialized_start = 497
39
+ _globals["_ADAPTERNODEINFO"]._serialized_end = 784
40
+ _globals["_REFERENCEKEYMSG"]._serialized_start = 786
41
+ _globals["_REFERENCEKEYMSG"]._serialized_end = 857
42
+ _globals["_ADAPTERDEPRECATIONWARNING"]._serialized_start = 859
43
+ _globals["_ADAPTERDEPRECATIONWARNING"]._serialized_end = 922
44
+ _globals["_ADAPTERDEPRECATIONWARNINGMSG"]._serialized_start = 925
45
+ _globals["_ADAPTERDEPRECATIONWARNINGMSG"]._serialized_end = 1060
46
+ _globals["_COLLECTFRESHNESSRETURNSIGNATURE"]._serialized_start = 1062
47
+ _globals["_COLLECTFRESHNESSRETURNSIGNATURE"]._serialized_end = 1095
48
+ _globals["_COLLECTFRESHNESSRETURNSIGNATUREMSG"]._serialized_start = 1098
49
+ _globals["_COLLECTFRESHNESSRETURNSIGNATUREMSG"]._serialized_end = 1245
50
+ _globals["_ADAPTEREVENTDEBUG"]._serialized_start = 1248
51
+ _globals["_ADAPTEREVENTDEBUG"]._serialized_end = 1390
52
+ _globals["_ADAPTEREVENTDEBUGMSG"]._serialized_start = 1392
53
+ _globals["_ADAPTEREVENTDEBUGMSG"]._serialized_end = 1511
54
+ _globals["_ADAPTEREVENTINFO"]._serialized_start = 1514
55
+ _globals["_ADAPTEREVENTINFO"]._serialized_end = 1655
56
+ _globals["_ADAPTEREVENTINFOMSG"]._serialized_start = 1657
57
+ _globals["_ADAPTEREVENTINFOMSG"]._serialized_end = 1774
58
+ _globals["_ADAPTEREVENTWARNING"]._serialized_start = 1777
59
+ _globals["_ADAPTEREVENTWARNING"]._serialized_end = 1921
60
+ _globals["_ADAPTEREVENTWARNINGMSG"]._serialized_start = 1923
61
+ _globals["_ADAPTEREVENTWARNINGMSG"]._serialized_end = 2046
62
+ _globals["_ADAPTEREVENTERROR"]._serialized_start = 2049
63
+ _globals["_ADAPTEREVENTERROR"]._serialized_end = 2209
64
+ _globals["_ADAPTEREVENTERRORMSG"]._serialized_start = 2211
65
+ _globals["_ADAPTEREVENTERRORMSG"]._serialized_end = 2330
66
+ _globals["_NEWCONNECTION"]._serialized_start = 2332
67
+ _globals["_NEWCONNECTION"]._serialized_end = 2434
68
+ _globals["_NEWCONNECTIONMSG"]._serialized_start = 2436
69
+ _globals["_NEWCONNECTIONMSG"]._serialized_end = 2547
70
+ _globals["_CONNECTIONREUSED"]._serialized_start = 2549
71
+ _globals["_CONNECTIONREUSED"]._serialized_end = 2610
72
+ _globals["_CONNECTIONREUSEDMSG"]._serialized_start = 2612
73
+ _globals["_CONNECTIONREUSEDMSG"]._serialized_end = 2729
74
+ _globals["_CONNECTIONLEFTOPENINCLEANUP"]._serialized_start = 2731
75
+ _globals["_CONNECTIONLEFTOPENINCLEANUP"]._serialized_end = 2779
76
+ _globals["_CONNECTIONLEFTOPENINCLEANUPMSG"]._serialized_start = 2782
77
+ _globals["_CONNECTIONLEFTOPENINCLEANUPMSG"]._serialized_end = 2921
78
+ _globals["_CONNECTIONCLOSEDINCLEANUP"]._serialized_start = 2923
79
+ _globals["_CONNECTIONCLOSEDINCLEANUP"]._serialized_end = 2969
80
+ _globals["_CONNECTIONCLOSEDINCLEANUPMSG"]._serialized_start = 2972
81
+ _globals["_CONNECTIONCLOSEDINCLEANUPMSG"]._serialized_end = 3107
82
+ _globals["_ROLLBACKFAILED"]._serialized_start = 3109
83
+ _globals["_ROLLBACKFAILED"]._serialized_end = 3211
84
+ _globals["_ROLLBACKFAILEDMSG"]._serialized_start = 3213
85
+ _globals["_ROLLBACKFAILEDMSG"]._serialized_end = 3326
86
+ _globals["_CONNECTIONCLOSED"]._serialized_start = 3328
87
+ _globals["_CONNECTIONCLOSED"]._serialized_end = 3414
88
+ _globals["_CONNECTIONCLOSEDMSG"]._serialized_start = 3416
89
+ _globals["_CONNECTIONCLOSEDMSG"]._serialized_end = 3533
90
+ _globals["_CONNECTIONLEFTOPEN"]._serialized_start = 3535
91
+ _globals["_CONNECTIONLEFTOPEN"]._serialized_end = 3623
92
+ _globals["_CONNECTIONLEFTOPENMSG"]._serialized_start = 3625
93
+ _globals["_CONNECTIONLEFTOPENMSG"]._serialized_end = 3746
94
+ _globals["_ROLLBACK"]._serialized_start = 3748
95
+ _globals["_ROLLBACK"]._serialized_end = 3826
96
+ _globals["_ROLLBACKMSG"]._serialized_start = 3828
97
+ _globals["_ROLLBACKMSG"]._serialized_end = 3929
98
+ _globals["_CACHEMISS"]._serialized_start = 3931
99
+ _globals["_CACHEMISS"]._serialized_end = 3995
100
+ _globals["_CACHEMISSMSG"]._serialized_start = 3997
101
+ _globals["_CACHEMISSMSG"]._serialized_end = 4100
102
+ _globals["_LISTRELATIONS"]._serialized_start = 4102
103
+ _globals["_LISTRELATIONS"]._serialized_end = 4200
104
+ _globals["_LISTRELATIONSMSG"]._serialized_start = 4202
105
+ _globals["_LISTRELATIONSMSG"]._serialized_end = 4313
106
+ _globals["_CONNECTIONUSED"]._serialized_start = 4315
107
+ _globals["_CONNECTIONUSED"]._serialized_end = 4418
108
+ _globals["_CONNECTIONUSEDMSG"]._serialized_start = 4420
109
+ _globals["_CONNECTIONUSEDMSG"]._serialized_end = 4533
110
+ _globals["_SQLQUERY"]._serialized_start = 4535
111
+ _globals["_SQLQUERY"]._serialized_end = 4626
112
+ _globals["_SQLQUERYMSG"]._serialized_start = 4628
113
+ _globals["_SQLQUERYMSG"]._serialized_end = 4729
114
+ _globals["_SQLQUERYSTATUS"]._serialized_start = 4731
115
+ _globals["_SQLQUERYSTATUS"]._serialized_end = 4829
116
+ _globals["_SQLQUERYSTATUSMSG"]._serialized_start = 4831
117
+ _globals["_SQLQUERYSTATUSMSG"]._serialized_end = 4944
118
+ _globals["_SQLCOMMIT"]._serialized_start = 4946
119
+ _globals["_SQLCOMMIT"]._serialized_end = 5025
120
+ _globals["_SQLCOMMITMSG"]._serialized_start = 5027
121
+ _globals["_SQLCOMMITMSG"]._serialized_end = 5130
122
+ _globals["_COLTYPECHANGE"]._serialized_start = 5132
123
+ _globals["_COLTYPECHANGE"]._serialized_end = 5229
124
+ _globals["_COLTYPECHANGEMSG"]._serialized_start = 5231
125
+ _globals["_COLTYPECHANGEMSG"]._serialized_end = 5342
126
+ _globals["_SCHEMACREATION"]._serialized_start = 5344
127
+ _globals["_SCHEMACREATION"]._serialized_end = 5408
128
+ _globals["_SCHEMACREATIONMSG"]._serialized_start = 5410
129
+ _globals["_SCHEMACREATIONMSG"]._serialized_end = 5523
130
+ _globals["_SCHEMADROP"]._serialized_start = 5525
131
+ _globals["_SCHEMADROP"]._serialized_end = 5585
132
+ _globals["_SCHEMADROPMSG"]._serialized_start = 5587
133
+ _globals["_SCHEMADROPMSG"]._serialized_end = 5692
134
+ _globals["_CACHEACTION"]._serialized_start = 5695
135
+ _globals["_CACHEACTION"]._serialized_end = 5917
136
+ _globals["_CACHEACTIONMSG"]._serialized_start = 5919
137
+ _globals["_CACHEACTIONMSG"]._serialized_end = 6026
138
+ _globals["_CACHEDUMPGRAPH"]._serialized_start = 6029
139
+ _globals["_CACHEDUMPGRAPH"]._serialized_end = 6181
140
+ _globals["_CACHEDUMPGRAPH_DUMPENTRY"]._serialized_start = 6138
141
+ _globals["_CACHEDUMPGRAPH_DUMPENTRY"]._serialized_end = 6181
142
+ _globals["_CACHEDUMPGRAPHMSG"]._serialized_start = 6183
143
+ _globals["_CACHEDUMPGRAPHMSG"]._serialized_end = 6296
144
+ _globals["_ADAPTERREGISTERED"]._serialized_start = 6298
145
+ _globals["_ADAPTERREGISTERED"]._serialized_end = 6364
146
+ _globals["_ADAPTERREGISTEREDMSG"]._serialized_start = 6366
147
+ _globals["_ADAPTERREGISTEREDMSG"]._serialized_end = 6485
148
+ _globals["_ADAPTERIMPORTERROR"]._serialized_start = 6487
149
+ _globals["_ADAPTERIMPORTERROR"]._serialized_end = 6520
150
+ _globals["_ADAPTERIMPORTERRORMSG"]._serialized_start = 6522
151
+ _globals["_ADAPTERIMPORTERRORMSG"]._serialized_end = 6643
152
+ _globals["_PLUGINLOADERROR"]._serialized_start = 6645
153
+ _globals["_PLUGINLOADERROR"]._serialized_end = 6680
154
+ _globals["_PLUGINLOADERRORMSG"]._serialized_start = 6682
155
+ _globals["_PLUGINLOADERRORMSG"]._serialized_end = 6797
156
+ _globals["_NEWCONNECTIONOPENING"]._serialized_start = 6799
157
+ _globals["_NEWCONNECTIONOPENING"]._serialized_end = 6896
158
+ _globals["_NEWCONNECTIONOPENINGMSG"]._serialized_start = 6898
159
+ _globals["_NEWCONNECTIONOPENINGMSG"]._serialized_end = 7023
160
+ _globals["_CODEEXECUTION"]._serialized_start = 7025
161
+ _globals["_CODEEXECUTION"]._serialized_end = 7081
162
+ _globals["_CODEEXECUTIONMSG"]._serialized_start = 7083
163
+ _globals["_CODEEXECUTIONMSG"]._serialized_end = 7194
164
+ _globals["_CODEEXECUTIONSTATUS"]._serialized_start = 7196
165
+ _globals["_CODEEXECUTIONSTATUS"]._serialized_end = 7250
166
+ _globals["_CODEEXECUTIONSTATUSMSG"]._serialized_start = 7252
167
+ _globals["_CODEEXECUTIONSTATUSMSG"]._serialized_end = 7375
168
+ _globals["_CATALOGGENERATIONERROR"]._serialized_start = 7377
169
+ _globals["_CATALOGGENERATIONERROR"]._serialized_end = 7414
170
+ _globals["_CATALOGGENERATIONERRORMSG"]._serialized_start = 7417
171
+ _globals["_CATALOGGENERATIONERRORMSG"]._serialized_end = 7546
172
+ _globals["_WRITECATALOGFAILURE"]._serialized_start = 7548
173
+ _globals["_WRITECATALOGFAILURE"]._serialized_end = 7593
174
+ _globals["_WRITECATALOGFAILUREMSG"]._serialized_start = 7595
175
+ _globals["_WRITECATALOGFAILUREMSG"]._serialized_end = 7718
176
+ _globals["_CATALOGWRITTEN"]._serialized_start = 7720
177
+ _globals["_CATALOGWRITTEN"]._serialized_end = 7750
178
+ _globals["_CATALOGWRITTENMSG"]._serialized_start = 7752
179
+ _globals["_CATALOGWRITTENMSG"]._serialized_end = 7865
180
+ _globals["_CANNOTGENERATEDOCS"]._serialized_start = 7867
181
+ _globals["_CANNOTGENERATEDOCS"]._serialized_end = 7887
182
+ _globals["_CANNOTGENERATEDOCSMSG"]._serialized_start = 7889
183
+ _globals["_CANNOTGENERATEDOCSMSG"]._serialized_end = 8010
184
+ _globals["_BUILDINGCATALOG"]._serialized_start = 8012
185
+ _globals["_BUILDINGCATALOG"]._serialized_end = 8029
186
+ _globals["_BUILDINGCATALOGMSG"]._serialized_start = 8031
187
+ _globals["_BUILDINGCATALOGMSG"]._serialized_end = 8146
188
+ _globals["_DATABASEERRORRUNNINGHOOK"]._serialized_start = 8148
189
+ _globals["_DATABASEERRORRUNNINGHOOK"]._serialized_end = 8193
190
+ _globals["_DATABASEERRORRUNNINGHOOKMSG"]._serialized_start = 8196
191
+ _globals["_DATABASEERRORRUNNINGHOOKMSG"]._serialized_end = 8329
192
+ _globals["_HOOKSRUNNING"]._serialized_start = 8331
193
+ _globals["_HOOKSRUNNING"]._serialized_end = 8383
194
+ _globals["_HOOKSRUNNINGMSG"]._serialized_start = 8385
195
+ _globals["_HOOKSRUNNINGMSG"]._serialized_end = 8494
196
+ _globals["_FINISHEDRUNNINGSTATS"]._serialized_start = 8496
197
+ _globals["_FINISHEDRUNNINGSTATS"]._serialized_end = 8580
198
+ _globals["_FINISHEDRUNNINGSTATSMSG"]._serialized_start = 8582
199
+ _globals["_FINISHEDRUNNINGSTATSMSG"]._serialized_end = 8707
200
+ _globals["_CONSTRAINTNOTENFORCED"]._serialized_start = 8709
201
+ _globals["_CONSTRAINTNOTENFORCED"]._serialized_end = 8769
202
+ _globals["_CONSTRAINTNOTENFORCEDMSG"]._serialized_start = 8771
203
+ _globals["_CONSTRAINTNOTENFORCEDMSG"]._serialized_end = 8898
204
+ _globals["_CONSTRAINTNOTSUPPORTED"]._serialized_start = 8900
205
+ _globals["_CONSTRAINTNOTSUPPORTED"]._serialized_end = 8961
206
+ _globals["_CONSTRAINTNOTSUPPORTEDMSG"]._serialized_start = 8964
207
+ _globals["_CONSTRAINTNOTSUPPORTEDMSG"]._serialized_end = 9093
208
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,40 @@
1
+ # Aliasing common Level classes in order to make custom, but not overly-verbose versions that have PROTO_TYPES_MODULE set to the adapter-specific generated types_pb2 module
2
+ from dbt_common.events.base_types import (
3
+ BaseEvent,
4
+ DebugLevel as CommonDebugLevel,
5
+ DynamicLevel as CommonDynamicLevel,
6
+ ErrorLevel as CommonErrorLevel,
7
+ InfoLevel as CommonInfoLevel,
8
+ TestLevel as CommonTestLevel,
9
+ WarnLevel as CommonWarnLevel,
10
+ )
11
+
12
+ from dbt.adapters.events import adapter_types_pb2
13
+
14
+
15
+ class AdapterBaseEvent(BaseEvent):
16
+ PROTO_TYPES_MODULE = adapter_types_pb2
17
+
18
+
19
+ class DynamicLevel(CommonDynamicLevel, AdapterBaseEvent):
20
+ pass
21
+
22
+
23
+ class TestLevel(CommonTestLevel, AdapterBaseEvent):
24
+ pass
25
+
26
+
27
+ class DebugLevel(CommonDebugLevel, AdapterBaseEvent):
28
+ pass
29
+
30
+
31
+ class InfoLevel(CommonInfoLevel, AdapterBaseEvent):
32
+ pass
33
+
34
+
35
+ class WarnLevel(CommonWarnLevel, AdapterBaseEvent):
36
+ pass
37
+
38
+
39
+ class ErrorLevel(CommonErrorLevel, AdapterBaseEvent):
40
+ pass
@@ -0,0 +1,83 @@
1
+ from dataclasses import dataclass
2
+ import traceback
3
+
4
+ from dbt_common.events import get_event_manager
5
+ from dbt_common.events.contextvars import get_node_info
6
+ from dbt_common.events.event_handler import set_package_logging
7
+ from dbt_common.events.functions import fire_event
8
+
9
+ from dbt.adapters.events.types import (
10
+ AdapterEventDebug,
11
+ AdapterEventError,
12
+ AdapterEventInfo,
13
+ AdapterEventWarning,
14
+ )
15
+
16
+
17
+ @dataclass
18
+ class AdapterLogger:
19
+ name: str
20
+
21
+ def debug(self, msg, *args) -> None:
22
+ event = AdapterEventDebug(
23
+ name=self.name,
24
+ base_msg=str(msg),
25
+ args=list(args),
26
+ node_info=get_node_info(),
27
+ )
28
+ fire_event(event)
29
+
30
+ def info(self, msg, *args) -> None:
31
+ event = AdapterEventInfo(
32
+ name=self.name,
33
+ base_msg=str(msg),
34
+ args=list(args),
35
+ node_info=get_node_info(),
36
+ )
37
+ fire_event(event)
38
+
39
+ def warning(self, msg, *args) -> None:
40
+ event = AdapterEventWarning(
41
+ name=self.name,
42
+ base_msg=str(msg),
43
+ args=list(args),
44
+ node_info=get_node_info(),
45
+ )
46
+ fire_event(event)
47
+
48
+ def error(self, msg, *args) -> None:
49
+ event = AdapterEventError(
50
+ name=self.name,
51
+ base_msg=str(msg),
52
+ args=list(args),
53
+ node_info=get_node_info(),
54
+ )
55
+ fire_event(event)
56
+
57
+ # The default exc_info=True is what makes this method different
58
+ def exception(self, msg, *args) -> None:
59
+ exc_info = str(traceback.format_exc())
60
+ event = AdapterEventError(
61
+ name=self.name,
62
+ base_msg=str(msg),
63
+ args=list(args),
64
+ node_info=get_node_info(),
65
+ exc_info=exc_info,
66
+ )
67
+ fire_event(event)
68
+
69
+ def critical(self, msg, *args) -> None:
70
+ event = AdapterEventError(
71
+ name=self.name,
72
+ base_msg=str(msg),
73
+ args=list(args),
74
+ node_info=get_node_info(),
75
+ )
76
+ fire_event(event)
77
+
78
+ @staticmethod
79
+ def set_adapter_dependency_log_level(package_name, level):
80
+ """By default, dbt suppresses non-dbt package logs. This method allows
81
+ you to set the log level for a specific package.
82
+ """
83
+ set_package_logging(package_name, level, get_event_manager())