Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | docs: fix path to sphinxHEADmaster | Olly Cope | 2022-12-14 | 1 | -1/+1 |
| | |||||
* | Bump version number for dev | Olly Cope | 2022-12-14 | 1 | -1/+1 |
| | |||||
* | Added tag v8.2.0-release for changeset 6addbc6e66c9 | Olly Cope | 2022-12-14 | 0 | -0/+0 |
| | |||||
* | Bump version number for release v8.2.0v8.2.0-release | Olly Cope | 2022-12-14 | 1 | -1/+1 |
| | |||||
* | Mark changelog with release date for v8.2.0 | Olly Cope | 2022-12-14 | 1 | -1/+1 |
| | |||||
* | Update changelog | Olly Cope | 2022-12-14 | 1 | -0/+9 |
| | |||||
* | setup: add minimum version requirement for importlib-metadata | Olly Cope | 2022-12-14 | 1 | -1/+1 |
| | | | | | Fixes https://todo.sr.ht/~olly/yoyo/90 Thanks to ~kirsanium for the report | ||||
* | Replace py36-compatible type annotation comments with newer syntax | Olly Cope | 2022-12-14 | 4 | -36/+29 |
| | |||||
* | tests: add support for py311 | Olly Cope | 2022-12-14 | 1 | -3/+3 |
| | |||||
* | tests: fix pytest deprecation warnings | Olly Cope | 2022-12-14 | 2 | -7/+7 |
| | |||||
* | Bump version number | Olly Cope | 2022-12-14 | 1 | -1/+1 |
| | |||||
* | merge cockroachdb | Olly Cope | 2022-11-09 | 7 | -44/+86 |
|\ | |||||
| * | tests: promote UserWarning to error | Olly Cope | 2022-11-03 | 1 | -0/+3 |
| | | |||||
| * | postgresql backend: move nested transaction warning into `begin` method | Olly Cope | 2022-11-03 | 1 | -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 transaction | Olly Cope | 2022-11-03 | 1 | -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 manually | Olly Cope | 2022-10-29 | 1 | -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 transactions | Olly Cope | 2022-10-29 | 2 | -0/+24 |
| | | |||||
| * | transaction handling: replace confusing rollback method with function argument | Olly Cope | 2022-10-29 | 3 | -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 code | Olly Cope | 2022-10-29 | 1 | -3/+3 |
| | | |||||
| * | Guard against exceptions inside _check_transactional_ddl | Olly Cope | 2022-10-11 | 1 | -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 dev | Olly Cope | 2022-11-03 | 1 | -1/+1 |
| | | |||||
* | | Added tag v8.1.0-release for changeset 9b79d7689c10 | Olly Cope | 2022-11-03 | 0 | -0/+0 |
| | | |||||
* | | Bump version number for releasev8.1.0-release | Olly Cope | 2022-11-03 | 1 | -1/+1 |
| | | |||||
* | | Mark changelog with release date for v8.1.0 | Olly Cope | 2022-11-03 | 1 | -2/+2 |
| | | |||||
* | | Bump version number | Olly Cope | 2022-11-03 | 1 | -1/+1 |
| | | |||||
* | | Update changelog | Olly Cope | 2022-11-03 | 1 | -0/+5 |
| | | |||||
* | | docs: replace example command lines with structured reference | Olly Cope | 2022-11-03 | 1 | -29/+48 |
| | | |||||
* | | docs: fix typo | Olly Cope | 2022-11-03 | 1 | -1/+1 |
| | | |||||
* | | docs: add project setup section | Olly Cope | 2022-11-03 | 1 | -3/+45 |
| | | |||||
* | | docs: enable sphinxcontrib-programoutput | Olly Cope | 2022-11-03 | 3 | -1/+3 |
| | | |||||
* | | docs: tighten up text | Olly Cope | 2022-11-02 | 1 | -10/+4 |
| | | |||||
* | | docs: improve documentation for the connection URL syntax | Olly Cope | 2022-10-30 | 1 | -15/+96 |
| | | |||||
* | | Add new command `yoyo init` | Olly Cope | 2022-11-03 | 3 | -1/+82 |
| | | |||||
* | | config: prevent prompting to save config when it has not changed | Olly Cope | 2022-11-03 | 2 | -4/+15 |
| | | |||||
* | | config: improve docstring | Olly Cope | 2022-11-02 | 1 | -2/+3 |
| | | |||||
* | | scripts/main: add missing type hints, fix inaccurate docstring | Olly Cope | 2022-11-03 | 1 | -2/+5 |
| | | |||||
* | | scripts: make scripts return an exitcode | Olly Cope | 2022-11-02 | 3 | -12/+23 |
|/ | |||||
* | Bump version number for dev | Olly Cope | 2022-10-05 | 1 | -1/+1 |
| | |||||
* | Added tag v8.0.0-release for changeset 6f4da9d9db3a | Olly Cope | 2022-10-05 | 0 | -0/+0 |
| | |||||
* | Bump version number for releasev8.0.0-release | Olly Cope | 2022-10-05 | 1 | -1/+1 |
| | |||||
* | Mark changelog with release date for v8.0.0 | Olly Cope | 2022-10-05 | 1 | -2/+2 |
| | |||||
* | docs: update path to sphinx binary | Olly Cope | 2022-10-05 | 1 | -1/+1 |
| | |||||
* | Update changelog | Olly Cope | 2022-10-05 | 1 | -0/+12 |
| | |||||
* | Bump major version number | Olly Cope | 2022-10-05 | 1 | -1/+1 |
| | |||||
* | Make backend.quote_identifier more robust | Olly Cope | 2022-10-02 | 1 | -1/+3 |
| | |||||
* | Add support for Psycopg 3 | Olly Cope | 2022-10-02 | 7 | -1/+19 |
| | |||||
* | Split yoyo.backends into a package | Olly Cope | 2022-09-01 | 15 | -249/+386 |
| | |||||
* | Reformat with Black | Olly Cope | 2022-09-01 | 13 | -136/+68 |
| | |||||
* | docs: add instructions for creating custom backends | Olly Cope | 2022-10-02 | 1 | -0/+26 |
| | |||||
* | backends: declare backends via importlib.metadata entry_points | Olly Cope | 2022-08-29 | 3 | -29/+24 |
| |