wexample-wex-addon-services-db 0.0.3__tar.gz

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.
Files changed (174) hide show
  1. wexample_wex_addon_services_db-0.0.3/PKG-INFO +164 -0
  2. wexample_wex_addon_services_db-0.0.3/README.md +147 -0
  3. wexample_wex_addon_services_db-0.0.3/pyproject.toml +82 -0
  4. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/__init__.py +7 -0
  5. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/py.typed +0 -0
  6. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/__init__.py +0 -0
  7. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/__init__.py +0 -0
  8. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/app_service.py +29 -0
  9. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/commands/__init__.py +0 -0
  10. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/commands/service/__init__.py +0 -0
  11. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/commands/service/install.py +31 -0
  12. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/commands/service/ready.py +41 -0
  13. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/docker/__init__.py +0 -0
  14. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/docker/docker-compose.yml +27 -0
  15. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/elasticsearch/service.yml +6 -0
  16. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/__init__.py +0 -0
  17. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/__init__.py +1 -0
  18. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/config/__init__.py +1 -0
  19. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/config/runtime.py +22 -0
  20. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/db/__init__.py +1 -0
  21. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/db/connect.py +24 -0
  22. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/db/destroy.py +30 -0
  23. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/db/dump.py +32 -0
  24. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/db/dumps_list.py +31 -0
  25. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/db/exec.py +31 -0
  26. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/db/go.py +24 -0
  27. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/db/restore.py +44 -0
  28. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/service/__init__.py +1 -0
  29. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/service/install.py +25 -0
  30. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/commands/service/ready.py +23 -0
  31. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/docker/__init__.py +0 -0
  32. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/docker/docker-compose.yml +18 -0
  33. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/__init__.py +0 -0
  34. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/docker/__init__.py +0 -0
  35. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/docker/docker-compose.yml +5 -0
  36. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/maria/__init__.py +0 -0
  37. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/maria/data/.gitkeep +1 -0
  38. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/maria/data/__init__.py +0 -0
  39. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/maria/dumps/.gitkeep +1 -0
  40. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/maria/dumps/__init__.py +0 -0
  41. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/samples/maria/my.cnf +1 -0
  42. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/maria/service.yml +4 -0
  43. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/__init__.py +0 -0
  44. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/app_service.py +32 -0
  45. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/__init__.py +1 -0
  46. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/config/__init__.py +1 -0
  47. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/config/runtime.py +32 -0
  48. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/db/__init__.py +1 -0
  49. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/db/destroy.py +83 -0
  50. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/db/dump.py +58 -0
  51. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/db/dumps_list.py +43 -0
  52. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/db/exec.py +45 -0
  53. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/db/go.py +33 -0
  54. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/db/restore.py +65 -0
  55. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/service/__init__.py +1 -0
  56. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/service/install.py +32 -0
  57. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/service/ready.py +44 -0
  58. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/commands/service/setup.py +27 -0
  59. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/docker/__init__.py +0 -0
  60. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/docker/docker-compose.yml +10 -0
  61. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/samples/__init__.py +0 -0
  62. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/samples/mongo/__init__.py +0 -0
  63. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/samples/mongo/data/.gitkeep +1 -0
  64. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/samples/mongo/data/__init__.py +0 -0
  65. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/samples/mongo/dumps/.gitkeep +1 -0
  66. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/samples/mongo/dumps/__init__.py +0 -0
  67. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mongo/service.yml +7 -0
  68. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/__init__.py +0 -0
  69. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/__init__.py +0 -0
  70. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/config/__init__.py +0 -0
  71. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/config/runtime.py +54 -0
  72. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/db/__init__.py +0 -0
  73. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/db/connect.py +20 -0
  74. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/db/destroy.py +54 -0
  75. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/db/dump.py +63 -0
  76. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/db/dumps_list.py +39 -0
  77. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/db/exec.py +46 -0
  78. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/db/go.py +40 -0
  79. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/db/restore.py +60 -0
  80. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/service/__init__.py +0 -0
  81. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/service/install.py +36 -0
  82. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/commands/service/ready.py +46 -0
  83. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/docker/__init__.py +0 -0
  84. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/docker/docker-compose.yml +15 -0
  85. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/samples/__init__.py +0 -0
  86. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/samples/mysql/__init__.py +0 -0
  87. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/samples/mysql/data/.gitkeep +0 -0
  88. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/samples/mysql/data/__init__.py +0 -0
  89. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/samples/mysql/dumps/.gitkeep +0 -0
  90. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/samples/mysql/dumps/__init__.py +0 -0
  91. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/samples/mysql/my.cnf +5 -0
  92. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/mysql/service.yml +9 -0
  93. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/__init__.py +0 -0
  94. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/app_service.py +34 -0
  95. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/commands/__init__.py +0 -0
  96. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/commands/service/__init__.py +0 -0
  97. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/commands/service/install.py +29 -0
  98. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/commands/service/ready.py +32 -0
  99. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/docker/__init__.py +0 -0
  100. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/docker/docker-compose.yml +6 -0
  101. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/neo4j/service.yml +5 -0
  102. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/__init__.py +0 -0
  103. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/app_service.py +36 -0
  104. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/__init__.py +1 -0
  105. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/config/__init__.py +1 -0
  106. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/config/runtime.py +32 -0
  107. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/db/__init__.py +1 -0
  108. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/db/connect.py +47 -0
  109. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/db/destroy.py +93 -0
  110. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/db/dump.py +67 -0
  111. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/db/dumps_list.py +39 -0
  112. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/db/exec.py +70 -0
  113. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/db/go.py +63 -0
  114. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/db/restore.py +67 -0
  115. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/service/__init__.py +1 -0
  116. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/service/install.py +36 -0
  117. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/commands/service/ready.py +60 -0
  118. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/docker/__init__.py +0 -0
  119. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/docker/docker-compose.yml +14 -0
  120. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/samples/__init__.py +0 -0
  121. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/samples/postgres/__init__.py +0 -0
  122. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/samples/postgres/data/.gitkeep +1 -0
  123. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/samples/postgres/data/__init__.py +0 -0
  124. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/samples/postgres/dumps/.gitkeep +1 -0
  125. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/samples/postgres/dumps/__init__.py +0 -0
  126. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/postgres/service.yml +7 -0
  127. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/__init__.py +1 -0
  128. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/commands/__init__.py +1 -0
  129. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/commands/service/__init__.py +1 -0
  130. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/commands/service/install.py +34 -0
  131. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/commands/service/ready.py +46 -0
  132. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/docker/__init__.py +0 -0
  133. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/docker/docker-compose.yml +15 -0
  134. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/samples/__init__.py +0 -0
  135. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/samples/docker/__init__.py +0 -0
  136. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/samples/docker/docker-compose.yml +5 -0
  137. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/samples/redis/__init__.py +0 -0
  138. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/samples/redis/data/.gitkeep +1 -0
  139. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/samples/redis/data/__init__.py +0 -0
  140. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/samples/redis/dumps/.gitkeep +1 -0
  141. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/samples/redis/dumps/__init__.py +0 -0
  142. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/redis/service.yml +5 -0
  143. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/__init__.py +1 -0
  144. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/__init__.py +1 -0
  145. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/config/__init__.py +1 -0
  146. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/config/runtime.py +32 -0
  147. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/db/__init__.py +1 -0
  148. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/db/destroy.py +90 -0
  149. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/db/dump.py +86 -0
  150. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/db/dumps_list.py +39 -0
  151. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/db/exec.py +62 -0
  152. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/db/go.py +59 -0
  153. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/db/restore.py +72 -0
  154. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/service/__init__.py +1 -0
  155. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/service/install.py +36 -0
  156. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/commands/service/ready.py +48 -0
  157. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/docker/__init__.py +0 -0
  158. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/docker/docker-compose.yml +14 -0
  159. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/helpers/__init__.py +1 -0
  160. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/helpers/sqlcmd.py +44 -0
  161. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/__init__.py +0 -0
  162. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/docker/__init__.py +0 -0
  163. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/docker/docker-compose.yml +5 -0
  164. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/__init__.py +0 -0
  165. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/data/.gitkeep +1 -0
  166. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/data/__init__.py +0 -0
  167. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/dumps/.gitkeep +1 -0
  168. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/dumps/__init__.py +0 -0
  169. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/log/.gitkeep +1 -0
  170. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/log/__init__.py +0 -0
  171. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/mssql/.gitkeep +1 -0
  172. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/samples/sqlserver/mssql/__init__.py +0 -0
  173. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services/sqlserver/service.yml +7 -0
  174. wexample_wex_addon_services_db-0.0.3/src/wexample_wex_addon_services_db/services_db_addon_manager.py +15 -0
@@ -0,0 +1,164 @@
1
+ Metadata-Version: 2.1
2
+ Name: wexample-wex-addon-services-db
3
+ Version: 0.0.3
4
+ Summary: Database services (mysql, postgres...) for wex
5
+ Author-Email: weeger <contact@wexample.com>
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.10
11
+ Requires-Dist: wexample-wex-addon-app>=1.0.0
12
+ Requires-Dist: wexample-wex-core>=7.0.0
13
+ Provides-Extra: dev
14
+ Requires-Dist: pytest; extra == "dev"
15
+ Requires-Dist: pytest-cov; extra == "dev"
16
+ Description-Content-Type: text/markdown
17
+
18
+ # wex_addon_services_db
19
+
20
+ Version: 0.0.3
21
+
22
+ Database services (mysql, postgres...) for wex
23
+
24
+ ## Table of Contents
25
+
26
+ - [Tests](#tests)
27
+ - [Suite Integration](#suite-integration)
28
+ - [Dependencies](#dependencies)
29
+ - [Versioning](#versioning)
30
+ - [License](#license)
31
+ - [Suite Integration](#suite-integration)
32
+ - [Suite Signature](#suite-signature)
33
+ - [Roadmap](#roadmap)
34
+ - [Status Compatibility](#status-compatibility)
35
+ - [Useful Links](#useful-links)
36
+ - [Migration Notes](#migration-notes)
37
+
38
+ ## Tests
39
+
40
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
41
+
42
+ ### Installation
43
+
44
+ First, install the required testing dependencies:
45
+ ```bash
46
+ .venv/bin/python -m pip install pytest pytest-cov
47
+ ```
48
+
49
+ ### Basic Usage
50
+
51
+ Run all tests with coverage:
52
+ ```bash
53
+ .venv/bin/python -m pytest --cov --cov-report=html
54
+ ```
55
+
56
+ ### Common Commands
57
+ ```bash
58
+ # Run tests with coverage for a specific module
59
+ .venv/bin/python -m pytest --cov=your_module
60
+
61
+ # Show which lines are not covered
62
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
63
+
64
+ # Generate an HTML coverage report
65
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
66
+
67
+ # Combine terminal and HTML reports
68
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
69
+
70
+ # Run specific test file with coverage
71
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
72
+ ```
73
+
74
+ ### Viewing HTML Reports
75
+
76
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
77
+
78
+ ### Coverage Threshold
79
+
80
+ To enforce a minimum coverage percentage:
81
+ ```bash
82
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
83
+ ```
84
+
85
+ This will cause the test suite to fail if coverage drops below 80%.
86
+
87
+ ## Integration in the Suite
88
+
89
+ This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
90
+
91
+ ### Related Packages
92
+
93
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
94
+
95
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
96
+
97
+ ## Dependencies
98
+
99
+ - wexample-wex-addon-app: >=1.0.0
100
+ - wexample-wex-core: >=7.0.0
101
+
102
+ ## Versioning & Compatibility Policy
103
+
104
+ Wexample packages follow **Semantic Versioning** (SemVer):
105
+
106
+ - **MAJOR**: Breaking changes
107
+ - **MINOR**: New features, backward compatible
108
+ - **PATCH**: Bug fixes, backward compatible
109
+
110
+ We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
111
+
112
+ ## License
113
+
114
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
115
+
116
+ Free to use in both personal and commercial projects.
117
+
118
+ ## Integration in the Suite
119
+
120
+ This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
121
+
122
+ ### Related Packages
123
+
124
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
125
+
126
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
127
+
128
+ # About us
129
+
130
+ [Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
131
+
132
+ This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
133
+
134
+ Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
135
+
136
+ ## Known Limitations & Roadmap
137
+
138
+ Current limitations and planned features are tracked in the GitHub issues.
139
+
140
+ See the [project roadmap](https://github.com/wexample/python-wex_addon_services_db/issues) for upcoming features and improvements.
141
+
142
+ ## Status & Compatibility
143
+
144
+ **Maturity**: Production-ready
145
+
146
+ **Python Support**: >=3.10
147
+
148
+ **OS Support**: Linux, macOS, Windows
149
+
150
+ **Status**: Actively maintained
151
+
152
+ ## Useful Links
153
+
154
+ - **Homepage**: https://github.com/wexample/python-wex-addon-services-db
155
+ - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
156
+ - **Issue Tracker**: https://github.com/wexample/python-wex-addon-services-db/issues
157
+ - **Discussions**: https://github.com/wexample/python-wex-addon-services-db/discussions
158
+ - **PyPI**: [pypi.org/project/wex_addon_services_db](https://pypi.org/project/wex_addon_services_db/)
159
+
160
+ ## Migration Notes
161
+
162
+ When upgrading between major versions, refer to the migration guides in the documentation.
163
+
164
+ Breaking changes are clearly documented with upgrade paths and examples.
@@ -0,0 +1,147 @@
1
+ # wex_addon_services_db
2
+
3
+ Version: 0.0.3
4
+
5
+ Database services (mysql, postgres...) for wex
6
+
7
+ ## Table of Contents
8
+
9
+ - [Tests](#tests)
10
+ - [Suite Integration](#suite-integration)
11
+ - [Dependencies](#dependencies)
12
+ - [Versioning](#versioning)
13
+ - [License](#license)
14
+ - [Suite Integration](#suite-integration)
15
+ - [Suite Signature](#suite-signature)
16
+ - [Roadmap](#roadmap)
17
+ - [Status Compatibility](#status-compatibility)
18
+ - [Useful Links](#useful-links)
19
+ - [Migration Notes](#migration-notes)
20
+
21
+ ## Tests
22
+
23
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
24
+
25
+ ### Installation
26
+
27
+ First, install the required testing dependencies:
28
+ ```bash
29
+ .venv/bin/python -m pip install pytest pytest-cov
30
+ ```
31
+
32
+ ### Basic Usage
33
+
34
+ Run all tests with coverage:
35
+ ```bash
36
+ .venv/bin/python -m pytest --cov --cov-report=html
37
+ ```
38
+
39
+ ### Common Commands
40
+ ```bash
41
+ # Run tests with coverage for a specific module
42
+ .venv/bin/python -m pytest --cov=your_module
43
+
44
+ # Show which lines are not covered
45
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
46
+
47
+ # Generate an HTML coverage report
48
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
49
+
50
+ # Combine terminal and HTML reports
51
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
52
+
53
+ # Run specific test file with coverage
54
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
55
+ ```
56
+
57
+ ### Viewing HTML Reports
58
+
59
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
60
+
61
+ ### Coverage Threshold
62
+
63
+ To enforce a minimum coverage percentage:
64
+ ```bash
65
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
66
+ ```
67
+
68
+ This will cause the test suite to fail if coverage drops below 80%.
69
+
70
+ ## Integration in the Suite
71
+
72
+ This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
73
+
74
+ ### Related Packages
75
+
76
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
77
+
78
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
79
+
80
+ ## Dependencies
81
+
82
+ - wexample-wex-addon-app: >=1.0.0
83
+ - wexample-wex-core: >=7.0.0
84
+
85
+ ## Versioning & Compatibility Policy
86
+
87
+ Wexample packages follow **Semantic Versioning** (SemVer):
88
+
89
+ - **MAJOR**: Breaking changes
90
+ - **MINOR**: New features, backward compatible
91
+ - **PATCH**: Bug fixes, backward compatible
92
+
93
+ We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
94
+
95
+ ## License
96
+
97
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
98
+
99
+ Free to use in both personal and commercial projects.
100
+
101
+ ## Integration in the Suite
102
+
103
+ This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
104
+
105
+ ### Related Packages
106
+
107
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
108
+
109
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
110
+
111
+ # About us
112
+
113
+ [Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
114
+
115
+ This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
116
+
117
+ Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
118
+
119
+ ## Known Limitations & Roadmap
120
+
121
+ Current limitations and planned features are tracked in the GitHub issues.
122
+
123
+ See the [project roadmap](https://github.com/wexample/python-wex_addon_services_db/issues) for upcoming features and improvements.
124
+
125
+ ## Status & Compatibility
126
+
127
+ **Maturity**: Production-ready
128
+
129
+ **Python Support**: >=3.10
130
+
131
+ **OS Support**: Linux, macOS, Windows
132
+
133
+ **Status**: Actively maintained
134
+
135
+ ## Useful Links
136
+
137
+ - **Homepage**: https://github.com/wexample/python-wex-addon-services-db
138
+ - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
139
+ - **Issue Tracker**: https://github.com/wexample/python-wex-addon-services-db/issues
140
+ - **Discussions**: https://github.com/wexample/python-wex-addon-services-db/discussions
141
+ - **PyPI**: [pypi.org/project/wex_addon_services_db](https://pypi.org/project/wex_addon_services_db/)
142
+
143
+ ## Migration Notes
144
+
145
+ When upgrading between major versions, refer to the migration guides in the documentation.
146
+
147
+ Breaking changes are clearly documented with upgrade paths and examples.
@@ -0,0 +1,82 @@
1
+ [build-system]
2
+ requires = [
3
+ "pdm-backend",
4
+ ]
5
+ build-backend = "pdm.backend"
6
+
7
+ [project]
8
+ name = "wexample-wex-addon-services-db"
9
+ version = "0.0.3"
10
+ description = "Database services (mysql, postgres...) for wex"
11
+ authors = [
12
+ { name = "weeger", email = "contact@wexample.com" },
13
+ ]
14
+ requires-python = ">=3.10"
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: OS Independent",
19
+ ]
20
+ dependencies = [
21
+ "wexample-wex-addon-app>=1.0.0",
22
+ "wexample-wex-core>=7.0.0",
23
+ ]
24
+
25
+ [project.readme]
26
+ file = "README.md"
27
+ content-type = "text/markdown"
28
+
29
+ [project.license]
30
+ text = "MIT"
31
+
32
+ [project.optional-dependencies]
33
+ dev = [
34
+ "pytest",
35
+ "pytest-cov",
36
+ ]
37
+
38
+ [tool.setuptools.packages.find]
39
+ include = [
40
+ "*",
41
+ ]
42
+ exclude = [
43
+ "wexample_wex_addon_services_db.testing*",
44
+ ]
45
+
46
+ [tool.pdm]
47
+ distribution = true
48
+
49
+ [tool.pdm.build]
50
+ package-dir = "src"
51
+ packages = [
52
+ { include = "wexample_wex_addon_services_db", from = "src" },
53
+ ]
54
+
55
+ [tool.pytest.ini_options]
56
+ pythonpath = [
57
+ "src",
58
+ ]
59
+ testpaths = [
60
+ "tests",
61
+ ]
62
+
63
+ [tool.coverage.run]
64
+ source = [
65
+ "wexample_wex_addon_services_db",
66
+ ]
67
+ omit = [
68
+ "*/tests/*",
69
+ "*/.venv/*",
70
+ "*/venv/*",
71
+ ]
72
+
73
+ [tool.coverage.report]
74
+ exclude_lines = [
75
+ "pragma: no cover",
76
+ "def __repr__",
77
+ "raise AssertionError",
78
+ "raise NotImplementedError",
79
+ "if __name__ == .__main__.:",
80
+ "if TYPE_CHECKING:",
81
+ "@abstractmethod",
82
+ ]
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_addon_services_db.services_db_addon_manager import (
4
+ ServicesDbAddonManager,
5
+ )
6
+
7
+ __all__ = ["ServicesDbAddonManager"]
@@ -0,0 +1,29 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_addon_app.service.app_service import AppService as BaseAppService
4
+
5
+
6
+ class AppService(BaseAppService):
7
+ def get_workdir_contribution(self) -> dict:
8
+ from wexample_filestate.const.disk import DiskItemType
9
+
10
+ # Elasticsearch container runs as uid 1000 (elasticsearch user)
11
+ es_mode = {"owner": "1000:1000", "permissions": "750", "recursive": True}
12
+
13
+ return {
14
+ "children": [
15
+ {
16
+ "name": "elasticsearch",
17
+ "type": DiskItemType.DIRECTORY,
18
+ "should_exist": True,
19
+ "children": [
20
+ {
21
+ "name": "data",
22
+ "type": DiskItemType.DIRECTORY,
23
+ "should_exist": True,
24
+ "mode": es_mode,
25
+ },
26
+ ],
27
+ },
28
+ ]
29
+ }
@@ -0,0 +1,31 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
6
+ from wexample_wex_core.decorator.command import command
7
+
8
+ if TYPE_CHECKING:
9
+ from wexample_wex_addon_app.service.app_service import AppService
10
+ from wexample_wex_core.context.execution_context import ExecutionContext
11
+
12
+
13
+ @command(
14
+ type=COMMAND_TYPE_SERVICE,
15
+ description="Configure elasticsearch service in app config",
16
+ )
17
+ def elasticsearch__service__install(
18
+ context: ExecutionContext,
19
+ service: AppService,
20
+ ) -> None:
21
+ app_name = service.app_workdir.get_config().search("global.name").get_str()
22
+ config_file = service.app_workdir.get_config_file()
23
+ config = config_file.read_config()
24
+
25
+ config.set_by_path(f"service.{service.name}.host", f"{app_name}_{service.name}")
26
+ config.set_by_path(f"service.{service.name}.port", 9200)
27
+
28
+ config_file.write_config(config)
29
+ service.app_workdir.get_runtime_config(rebuild=True)
30
+
31
+ context.io.log(f"Configured elasticsearch service for app '{app_name}'")
@@ -0,0 +1,41 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
6
+ from wexample_wex_core.decorator.command import command
7
+
8
+ if TYPE_CHECKING:
9
+ from wexample_app.response.boolean_response import BooleanResponse
10
+ from wexample_wex_addon_app.service.app_service import AppService
11
+ from wexample_wex_core.context.execution_context import ExecutionContext
12
+
13
+
14
+ @command(
15
+ type=COMMAND_TYPE_SERVICE, description="Check if elasticsearch service is ready"
16
+ )
17
+ def elasticsearch__service__ready(
18
+ context: ExecutionContext,
19
+ service: AppService,
20
+ ) -> BooleanResponse:
21
+ import subprocess
22
+
23
+ from wexample_app.response.boolean_response import BooleanResponse
24
+
25
+ runtime = service.app_workdir.get_runtime_config()
26
+ app_project_name = runtime.search("app.project_name").get_str()
27
+ container_name = f"{app_project_name}_{service.name}"
28
+
29
+ result = subprocess.run(
30
+ [
31
+ "docker",
32
+ "exec",
33
+ container_name,
34
+ "curl",
35
+ "-sf",
36
+ "http://localhost:9200/_cluster/health",
37
+ ],
38
+ capture_output=True,
39
+ )
40
+
41
+ return BooleanResponse(kernel=context.kernel, content=result.returncode == 0)
@@ -0,0 +1,27 @@
1
+ services:
2
+ elasticsearch:
3
+ container_name: ${APP_PROJECT_NAME}_elasticsearch
4
+ image: elasticsearch:9.1.4
5
+ environment:
6
+ - node.name=elasticsearch
7
+ - cluster.name=${APP_PROJECT_NAME}-logging
8
+ - discovery.type=single-node
9
+ - bootstrap.memory_lock=true
10
+ - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
11
+ ulimits:
12
+ memlock:
13
+ soft: -1
14
+ hard: -1
15
+ volumes:
16
+ - ${APP_PATH}elasticsearch/data:/usr/share/elasticsearch/data
17
+ ports:
18
+ - "9200:9200"
19
+ - "9300:9300"
20
+ networks:
21
+ - wex_net
22
+ deploy:
23
+ resources:
24
+ limits:
25
+ memory: 6g
26
+ reservations:
27
+ memory: 3g
@@ -0,0 +1,6 @@
1
+ name: elasticsearch
2
+ tags:
3
+ - db
4
+ - search
5
+ docker:
6
+ compose: docker/docker-compose.yml
@@ -0,0 +1,22 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
6
+ from wexample_wex_core.decorator.command import command
7
+
8
+ from wexample_wex_addon_services_db.services.mysql.commands.config.runtime import (
9
+ mysql__config__runtime,
10
+ )
11
+
12
+ if TYPE_CHECKING:
13
+ from wexample_wex_addon_app.service.app_service import AppService
14
+ from wexample_wex_core.context.execution_context import ExecutionContext
15
+
16
+
17
+ @command(type=COMMAND_TYPE_SERVICE, description="Write maria runtime configuration")
18
+ def maria__config__runtime(
19
+ context: ExecutionContext,
20
+ service: AppService,
21
+ ) -> None:
22
+ return mysql__config__runtime(context=context, service=service)
@@ -0,0 +1,24 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
6
+ from wexample_wex_core.decorator.command import command
7
+
8
+ from wexample_wex_addon_services_db.services.mysql.commands.db.connect import (
9
+ mysql__db__connect,
10
+ )
11
+
12
+ if TYPE_CHECKING:
13
+ from wexample_wex_addon_app.service.app_service import AppService
14
+ from wexample_wex_core.context.execution_context import ExecutionContext
15
+
16
+
17
+ @command(
18
+ type=COMMAND_TYPE_SERVICE, description="Return maria connection arguments string"
19
+ )
20
+ def maria__db__connect(
21
+ context: ExecutionContext,
22
+ service: AppService,
23
+ ) -> str:
24
+ return mysql__db__connect(context=context, service=service)
@@ -0,0 +1,30 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
6
+ from wexample_wex_core.decorator.command import command
7
+ from wexample_wex_core.decorator.option import option
8
+
9
+ from wexample_wex_addon_services_db.services.mysql.commands.db.destroy import (
10
+ mysql__db__destroy,
11
+ )
12
+
13
+ if TYPE_CHECKING:
14
+ from wexample_wex_addon_app.service.app_service import AppService
15
+ from wexample_wex_core.context.execution_context import ExecutionContext
16
+
17
+
18
+ @option(
19
+ name="database",
20
+ type=str,
21
+ required=False,
22
+ description="Database name (defaults to db.main from runtime config)",
23
+ )
24
+ @command(type=COMMAND_TYPE_SERVICE, description="Drop and recreate the maria database")
25
+ def maria__db__destroy(
26
+ context: ExecutionContext,
27
+ service: AppService,
28
+ database: str | None = None,
29
+ ) -> None:
30
+ return mysql__db__destroy(context=context, service=service, database=database)
@@ -0,0 +1,32 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
6
+ from wexample_wex_core.decorator.command import command
7
+ from wexample_wex_core.decorator.option import option
8
+
9
+ from wexample_wex_addon_services_db.services.mysql.commands.db.dump import (
10
+ mysql__db__dump,
11
+ )
12
+
13
+ if TYPE_CHECKING:
14
+ from wexample_wex_addon_app.service.app_service import AppService
15
+ from wexample_wex_core.context.execution_context import ExecutionContext
16
+
17
+
18
+ @option(
19
+ name="file_name",
20
+ type=str,
21
+ required=True,
22
+ description="Dump file name (without extension)",
23
+ )
24
+ @command(
25
+ type=COMMAND_TYPE_SERVICE, description="Dump the maria database to a .sql file"
26
+ )
27
+ def maria__db__dump(
28
+ context: ExecutionContext,
29
+ service: AppService,
30
+ file_name: str,
31
+ ) -> str:
32
+ return mysql__db__dump(context=context, service=service, file_name=file_name)