-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add docker-compose.yml for local development * Added Makefile for local automations
- Loading branch information
Showing
10 changed files
with
248 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,140 +1,4 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
[Visit](https://www.encode.io/databases/release-notes) to see the changelog. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). | ||
|
||
## 0.8.0 (Mar 21, 2022) | ||
|
||
### Added | ||
|
||
- Support for SQLAlchemy 2.0+ | ||
- Added internal support for psycopg dialect. | ||
|
||
### Changed | ||
|
||
- Removed support for python 3.7 in favour to 3.8. | ||
- Python 3.7 support will end in June 2023 | ||
- Removed support for `aiopg`. | ||
|
||
|
||
## 0.7.0 (Dec 18th, 2022) | ||
|
||
### Fixed | ||
|
||
* Fixed breaking changes in SQLAlchemy cursor; supports `>=1.4.42,<1.5` (#513). | ||
* Wrapped types in `typing.Optional` where applicable (#510). | ||
|
||
## 0.6.2 (Nov 7th, 2022) | ||
|
||
### Changed | ||
|
||
* Pinned SQLAlchemy `<=1.4.41` to avoid breaking changes (#520). | ||
|
||
## 0.6.1 (Aug 9th, 2022) | ||
|
||
### Fixed | ||
|
||
* Improve typing for `Transaction` (#493) | ||
* Allow string indexing into Record (#501) | ||
|
||
## 0.6.0 (May 29th, 2022) | ||
|
||
* Dropped Python 3.6 support (#458) | ||
|
||
### Added | ||
|
||
* Add _mapping property to the result set interface (#447 ) | ||
* Add contributing docs (#453 ) | ||
|
||
### Fixed | ||
|
||
* Fix query result named access (#448) | ||
* Fix connections getting into a bad state when a task is cancelled (#457) | ||
* Revert #328 parallel transactions (#472) | ||
* Change extra installations to specific drivers (#436) | ||
|
||
## 0.5.4 (January 14th, 2022) | ||
|
||
### Added | ||
|
||
* Support for Unix domain in connections (#423) | ||
* Added `asyncmy` MySQL driver (#382) | ||
|
||
### Fixed | ||
|
||
* Fix SQLite fetch queries with multiple parameters (#435) | ||
* Changed `Record` type to `Sequence` (#408) | ||
|
||
## 0.5.3 (October 10th, 2021) | ||
|
||
### Added | ||
|
||
* Support `dialect+driver` for default database drivers like `postgresql+asyncpg` (#396) | ||
|
||
### Fixed | ||
|
||
* Documentation of low-level transaction (#390) | ||
|
||
## 0.5.2 (September 10th, 2021) | ||
|
||
### Fixed | ||
|
||
* Reset counter for failed connections (#385) | ||
* Avoid dangling task-local connections after Database.disconnect() (#211) | ||
|
||
## 0.5.1 (September 2nd, 2021) | ||
|
||
### Added | ||
|
||
* Make database `connect` and `disconnect` calls idempotent (#379) | ||
|
||
### Fixed | ||
|
||
* Fix `in_` and `notin_` queries in SQLAlchemy 1.4 (#378) | ||
|
||
## 0.5.0 (August 26th, 2021) | ||
|
||
### Added | ||
* Support SQLAlchemy 1.4 (#299) | ||
|
||
### Fixed | ||
|
||
* Fix concurrent transactions (#328) | ||
|
||
## 0.4.3 (March 26th, 2021) | ||
|
||
### Fixed | ||
|
||
* Pin SQLAlchemy to <1.4 (#314) | ||
|
||
## 0.4.2 (March 14th, 2021) | ||
|
||
### Fixed | ||
|
||
* Fix memory leak with asyncpg for SQLAlchemy generic functions (#273) | ||
|
||
## 0.4.1 (November 16th, 2020) | ||
|
||
### Fixed | ||
|
||
* Remove package dependency on the synchronous DB drivers (#256) | ||
|
||
## 0.4.0 (October 20th, 2020) | ||
|
||
### Added | ||
|
||
* Use backend native fetch_val() implementation when available (#132) | ||
* Replace psycopg2-binary with psycopg2 (#204) | ||
* Speed up PostgresConnection fetch() and iterate() (#193) | ||
* Access asyncpg Record field by key on raw query (#207) | ||
* Allow setting min_size and max_size in postgres DSN (#210) | ||
* Add option pool_recycle in postgres DSN (#233) | ||
* Allow extra transaction options (#242) | ||
|
||
### Fixed | ||
|
||
* Fix type hinting for sqlite backend (#227) | ||
* Fix SQLAlchemy DDL statements (#226) | ||
* Make fetch_val call fetch_one for type conversion (#246) | ||
* Unquote username and password in DatabaseURL (#248) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
.PHONY: help | ||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: clean | ||
clean: clean_pyc ## Clean all PYC in the system | ||
|
||
.PHONY: clean_pyc | ||
clean_pyc: ## Cleans all *.pyc in the system | ||
find . -type f -name "*.pyc" -delete || true | ||
|
||
.PHONY: clean_pycache | ||
clean_pycache: ## Removes the __pycaches__ | ||
find . -type d -name "*__pycache__*" -delete | ||
|
||
.PHONY: serve-docs | ||
serve-docs: ## Runs the local docs | ||
mkdocs serve | ||
|
||
.PHONY: build-docs | ||
build-docs: ## Runs the local docs | ||
mkdocs build | ||
|
||
.PHONY: test | ||
test: ## Runs the tests | ||
pytest $(TESTONLY) --disable-pytest-warnings -s -vv && scripts/clean | ||
|
||
.PHONY: requirements | ||
requirements: ## Install requirements for development | ||
pip install -r requirements.txt | ||
|
||
ifndef VERBOSE | ||
.SILENT: | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: "3.8" | ||
services: | ||
db: | ||
restart: always | ||
image: postgres:14 | ||
environment: | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_USER: "postgres" | ||
POSTGRES_PASSWORD: "postgres" | ||
POSTGRES_DB: "testsuite" | ||
expose: | ||
- "5432" | ||
ports: | ||
- "5432:5432" | ||
|
||
mysql: | ||
restart: always | ||
image: mysql:5.7 | ||
environment: | ||
MYSQL_USER: "mysql" | ||
MYSQL_PASSWORD: "mysql" | ||
MYSQL_DATABASE: "testsuite" | ||
MYSQL_ROOT_PASSWORD: "password" | ||
expose: | ||
- "3306" | ||
ports: | ||
- "3306:3306" | ||
command: --default-authentication-plugin=mysql_native_password | ||
|
||
redis: | ||
restart: always | ||
image: redis:latest | ||
ports: | ||
- "6379:6379" | ||
expose: | ||
- "6379" |
Oops, something went wrong.