summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* docs: fix path to sphinxHEADmasterOlly Cope2022-12-141-1/+1
|
* Bump version number for devOlly Cope2022-12-141-1/+1
|
* Added tag v8.2.0-release for changeset 6addbc6e66c9Olly Cope2022-12-140-0/+0
|
* Bump version number for release v8.2.0v8.2.0-releaseOlly Cope2022-12-141-1/+1
|
* Mark changelog with release date for v8.2.0Olly Cope2022-12-141-1/+1
|
* Update changelogOlly Cope2022-12-141-0/+9
|
* setup: add minimum version requirement for importlib-metadataOlly Cope2022-12-141-1/+1
| | | | | Fixes https://todo.sr.ht/~olly/yoyo/90 Thanks to ~kirsanium for the report
* Replace py36-compatible type annotation comments with newer syntaxOlly Cope2022-12-144-36/+29
|
* tests: add support for py311Olly Cope2022-12-141-3/+3
|
* tests: fix pytest deprecation warningsOlly Cope2022-12-142-7/+7
|
* Bump version numberOlly Cope2022-12-141-1/+1
|
* merge cockroachdbOlly Cope2022-11-097-44/+86
|\
| * tests: promote UserWarning to errorOlly Cope2022-11-031-0/+3
| |
| * postgresql backend: move nested transaction warning into `begin` methodOlly Cope2022-11-031-10/+9
| | | | | | | | | | | | Triggering a UserWarning in `transaction` is too early. Nested transactions should be detected by ``DatabaseBackend.transaction`` and converted to savepoints. We should only warn if a BEGIN statement is issued.
| * Remove unnecessary transactionOlly Cope2022-11-031-9/+6
| | | | | | | | | | The transaction here does not appear to required and it causes a nested transaction warning in PostgreSQL.
| * postgresql: put connection into autocommit mode, handle transactions manuallyOlly Cope2022-10-291-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Both psycopg2 and psycopg3 inject a BEGIN statement before the first SQL statement. But yoyo attempts to manage its own transactions, sending a BEGIN statement, duplicating the one already sent by psycopg. This duplicate BEGIN raises a warning in PostgreSQL and an error in CockroachDB, making yoyo unusable with CockroachDB. Setting `connection.autocommit` connection stops psycopg from injecting BEGIN statements, giving yoyo full control over the emitted SQL. https://www.psycopg.org/docs/usage.html#transactions-control https://www.psycopg.org/psycopg3/docs/basic/transactions.html
| * translation handling: add checks for nested transactionsOlly Cope2022-10-292-0/+24
| |
| * transaction handling: replace confusing rollback method with function argumentOlly Cope2022-10-293-29/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code: with backend.transaction() as transaction: transaction.rollback() ... Looks like it rolls back the connection at the start of the block - but that's not what is actually happening. The code becomes much clearer with this change: with backend.transaction(rollback_on_exit=True): ...
| * tests: refactor conftest table dropping codeOlly Cope2022-10-291-3/+3
| |
| * Guard against exceptions inside _check_transactional_ddlOlly Cope2022-10-111-3/+7
| | | | | | | | | | This implements the fix suggested here https://todo.sr.ht/~olly/yoyo/71, necessary for use with Cockroach DB.
* | Bump version number for devOlly Cope2022-11-031-1/+1
| |
* | Added tag v8.1.0-release for changeset 9b79d7689c10Olly Cope2022-11-030-0/+0
| |
* | Bump version number for releasev8.1.0-releaseOlly Cope2022-11-031-1/+1
| |
* | Mark changelog with release date for v8.1.0Olly Cope2022-11-031-2/+2
| |
* | Bump version numberOlly Cope2022-11-031-1/+1
| |
* | Update changelogOlly Cope2022-11-031-0/+5
| |
* | docs: replace example command lines with structured referenceOlly Cope2022-11-031-29/+48
| |
* | docs: fix typoOlly Cope2022-11-031-1/+1
| |
* | docs: add project setup sectionOlly Cope2022-11-031-3/+45
| |
* | docs: enable sphinxcontrib-programoutputOlly Cope2022-11-033-1/+3
| |
* | docs: tighten up textOlly Cope2022-11-021-10/+4
| |
* | docs: improve documentation for the connection URL syntaxOlly Cope2022-10-301-15/+96
| |
* | Add new command `yoyo init`Olly Cope2022-11-033-1/+82
| |
* | config: prevent prompting to save config when it has not changedOlly Cope2022-11-032-4/+15
| |
* | config: improve docstringOlly Cope2022-11-021-2/+3
| |
* | scripts/main: add missing type hints, fix inaccurate docstringOlly Cope2022-11-031-2/+5
| |
* | scripts: make scripts return an exitcodeOlly Cope2022-11-023-12/+23
|/
* Bump version number for devOlly Cope2022-10-051-1/+1
|
* Added tag v8.0.0-release for changeset 6f4da9d9db3aOlly Cope2022-10-050-0/+0
|
* Bump version number for releasev8.0.0-releaseOlly Cope2022-10-051-1/+1
|
* Mark changelog with release date for v8.0.0Olly Cope2022-10-051-2/+2
|
* docs: update path to sphinx binaryOlly Cope2022-10-051-1/+1
|
* Update changelogOlly Cope2022-10-051-0/+12
|
* Bump major version numberOlly Cope2022-10-051-1/+1
|
* Make backend.quote_identifier more robustOlly Cope2022-10-021-1/+3
|
* Add support for Psycopg 3Olly Cope2022-10-027-1/+19
|
* Split yoyo.backends into a packageOlly Cope2022-09-0115-249/+386
|
* Reformat with BlackOlly Cope2022-09-0113-136/+68
|
* docs: add instructions for creating custom backendsOlly Cope2022-10-021-0/+26
|
* backends: declare backends via importlib.metadata entry_pointsOlly Cope2022-08-293-29/+24
|