dbt-postgres 1.8.1__tar.gz → 1.8.2__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 (46) hide show
  1. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/.gitignore +6 -0
  2. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/PKG-INFO +16 -3
  3. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/README.md +14 -0
  4. dbt_postgres-1.8.2/dbt/adapters/postgres/__version__.py +1 -0
  5. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/pyproject.toml +1 -4
  6. dbt_postgres-1.8.1/dbt/adapters/postgres/__version__.py +0 -1
  7. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/LICENSE +0 -0
  8. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/__init__.py +0 -0
  9. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/__init__.py +0 -0
  10. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/column.py +0 -0
  11. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/connections.py +0 -0
  12. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/impl.py +0 -0
  13. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/relation.py +0 -0
  14. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/relation_configs/__init__.py +0 -0
  15. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/relation_configs/constants.py +0 -0
  16. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/relation_configs/index.py +0 -0
  17. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/adapters/postgres/relation_configs/materialized_view.py +0 -0
  18. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/__init__.py +0 -0
  19. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/dbt_project.yml +0 -0
  20. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/adapters.sql +0 -0
  21. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/catalog.sql +0 -0
  22. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/materializations/incremental_strategies.sql +0 -0
  23. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/materializations/snapshot_merge.sql +0 -0
  24. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/materialized_view/alter.sql +0 -0
  25. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/materialized_view/create.sql +0 -0
  26. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/materialized_view/describe.sql +0 -0
  27. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/materialized_view/drop.sql +0 -0
  28. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/materialized_view/refresh.sql +0 -0
  29. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/materialized_view/rename.sql +0 -0
  30. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/table/drop.sql +0 -0
  31. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/table/rename.sql +0 -0
  32. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/table/replace.sql +0 -0
  33. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/view/drop.sql +0 -0
  34. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/view/rename.sql +0 -0
  35. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations/view/replace.sql +0 -0
  36. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/relations.sql +0 -0
  37. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/timestamps.sql +0 -0
  38. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/utils/any_value.sql +0 -0
  39. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/utils/columns_spec_ddl.sql +0 -0
  40. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/utils/dateadd.sql +0 -0
  41. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/utils/datediff.sql +0 -0
  42. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/utils/last_day.sql +0 -0
  43. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/utils/listagg.sql +0 -0
  44. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/macros/utils/split_part.sql +0 -0
  45. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/profile_template.yml +0 -0
  46. {dbt_postgres-1.8.1 → dbt_postgres-1.8.2}/dbt/include/postgres/sample_profiles.yml +0 -0
@@ -161,3 +161,9 @@ cython_debug/
161
161
 
162
162
  # testing artifacts
163
163
  /logs
164
+
165
+ # MacOS
166
+ .DS_Store
167
+
168
+ # vscode
169
+ .vscode/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dbt-postgres
3
- Version: 1.8.1
3
+ Version: 1.8.2
4
4
  Summary: The set of adapter protocols and base functionality that supports integration with dbt-core
5
5
  Project-URL: Homepage, https://github.com/dbt-labs/dbt-postgres
6
6
  Project-URL: Documentation, https://docs.getdbt.com
@@ -25,8 +25,7 @@ Requires-Dist: agate<2.0,>=1.0
25
25
  Requires-Dist: dbt-adapters<2.0,>=0.1.0a1
26
26
  Requires-Dist: dbt-common<2.0,>=0.1.0a1
27
27
  Requires-Dist: dbt-core>=1.8.0a1
28
- Requires-Dist: psycopg2-binary<3.0,>=2.9; platform_system != 'Linux'
29
- Requires-Dist: psycopg2<3.0,>=2.9; platform_system == 'Linux'
28
+ Requires-Dist: psycopg2-binary<3.0,>=2.9
30
29
  Description-Content-Type: text/markdown
31
30
 
32
31
  <p align="center">
@@ -52,6 +51,20 @@ more information on using dbt with Postgres, consult [the docs](https://docs.get
52
51
  - [Install dbt](https://docs.getdbt.com/docs/installation)
53
52
  - Read the [introduction](https://docs.getdbt.com/docs/introduction/) and [viewpoint](https://docs.getdbt.com/docs/about/viewpoint/)
54
53
 
54
+ ### `psycopg2-binary` vs. `psycopg2`
55
+
56
+ By default, `dbt-postgres` installs `psycopg2-binary`. This is great for development, and even testing, as it does not require any OS dependencies; it's a pre-built wheel. However, building `psycopg2` from source will grant performance improvements that are desired in a production environment. In order to install `psycopg2`, use the following steps:
57
+
58
+ ```bash
59
+ if [[ $(pip show psycopg2-binary) ]]; then
60
+ PSYCOPG2_VERSION=$(pip show psycopg2-binary | grep Version | cut -d " " -f 2)
61
+ pip uninstall -y psycopg2-binary
62
+ pip install psycopg2==$PSYCOPG2_VERSION
63
+ fi
64
+ ```
65
+
66
+ This ensures the version of `psycopg2` will match that of `psycopg2-binary`.
67
+
55
68
  ## Join the dbt Community
56
69
 
57
70
  - Be part of the conversation in the [dbt Community Slack](http://community.getdbt.com/)
@@ -21,6 +21,20 @@ more information on using dbt with Postgres, consult [the docs](https://docs.get
21
21
  - [Install dbt](https://docs.getdbt.com/docs/installation)
22
22
  - Read the [introduction](https://docs.getdbt.com/docs/introduction/) and [viewpoint](https://docs.getdbt.com/docs/about/viewpoint/)
23
23
 
24
+ ### `psycopg2-binary` vs. `psycopg2`
25
+
26
+ By default, `dbt-postgres` installs `psycopg2-binary`. This is great for development, and even testing, as it does not require any OS dependencies; it's a pre-built wheel. However, building `psycopg2` from source will grant performance improvements that are desired in a production environment. In order to install `psycopg2`, use the following steps:
27
+
28
+ ```bash
29
+ if [[ $(pip show psycopg2-binary) ]]; then
30
+ PSYCOPG2_VERSION=$(pip show psycopg2-binary | grep Version | cut -d " " -f 2)
31
+ pip uninstall -y psycopg2-binary
32
+ pip install psycopg2==$PSYCOPG2_VERSION
33
+ fi
34
+ ```
35
+
36
+ This ensures the version of `psycopg2` will match that of `psycopg2-binary`.
37
+
24
38
  ## Join the dbt Community
25
39
 
26
40
  - Be part of the conversation in the [dbt Community Slack](http://community.getdbt.com/)
@@ -0,0 +1 @@
1
+ version = "1.8.2"
@@ -23,10 +23,7 @@ classifiers = [
23
23
  "Programming Language :: Python :: 3.11",
24
24
  ]
25
25
  dependencies = [
26
- # install `psycopg2` on linux (assumed production)
27
- 'psycopg2>=2.9,<3.0; platform_system == "Linux"',
28
- # install `psycopg2-binary` on macos/windows (assumed development)
29
- 'psycopg2-binary>=2.9,<3.0; platform_system != "Linux"',
26
+ "psycopg2-binary>=2.9,<3.0",
30
27
  "dbt-adapters>=0.1.0a1,<2.0",
31
28
  # add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency
32
29
  "dbt-core>=1.8.0a1",
@@ -1 +0,0 @@
1
- version = "1.8.1"
File without changes