Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: datajoint/datajoint-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.0
Choose a base ref
...
head repository: datajoint/datajoint-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2.1
Choose a head ref
  • 13 commits
  • 7 files changed
  • 6 contributors

Commits on Apr 1, 2026

  1. Update version.py to 2.2.0

    github-actions committed Apr 1, 2026
    Configuration menu
    Copy the full SHA
    fd8546d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1420 from datajoint/update-version-2.2.0

    [github-actions]Update version.py to v2.2.0
    dimitri-yatsenko authored Apr 1, 2026
    Configuration menu
    Copy the full SHA
    629c3c7 View commit details
    Browse the repository at this point in the history
  3. docs: add PostgreSQL configuration to CONTRIBUTING.md

    - Document PostgreSQL 15+ as supported backend alongside MySQL 8+
    - Add PostgreSQL environment variables (DJ_PG_HOST, DJ_PG_PORT, etc.)
    - Document backend-parameterized tests and how to run per-backend
    - Show pip install with [postgres] extra for psycopg2-binary
    - Add PostgreSQL to external containers instructions
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    dimitri-yatsenko and claude committed Apr 1, 2026
    Configuration menu
    Copy the full SHA
    1e957ef View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2026

  1. fix: use absolute URL for CONTRIBUTING.md link in README

    Relative link works on GitHub but breaks on PyPI, which renders
    the README without access to other repo files.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    dimitri-yatsenko and claude committed Apr 2, 2026
    Configuration menu
    Copy the full SHA
    08886ad View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2026

  1. feat: add dbname setting for PostgreSQL connections

    Add database.dbname config option (env: DJ_DBNAME) to specify which
    PostgreSQL database to connect to. Defaults to 'postgres' if not set
    (existing behavior preserved).
    
    Required where the primary database has a non-default name.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    kushalbakshi and claude committed Apr 6, 2026
    Configuration menu
    Copy the full SHA
    58de0f3 View commit details
    Browse the repository at this point in the history
  2. refactor: extract _build_connect_kwargs, add dbname to Connection.__i…

    …nit__, add tests
    
    - Extract duplicated connect kwargs construction into _build_connect_kwargs()
    - Add dbname as explicit keyword argument to Connection.__init__() for
      programmatic use (explicit arg overrides config value)
    - Add 5 unit tests for dbname settings (default, env var, config file,
      dict access, override context manager)
    - Bump version to 2.2.1
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    kushalbakshi and claude committed Apr 6, 2026
    Configuration menu
    Copy the full SHA
    bdbec08 View commit details
    Browse the repository at this point in the history
  3. style: apply ruff-format to dbname changes

    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    kushalbakshi and claude committed Apr 6, 2026
    Configuration menu
    Copy the full SHA
    35e93b0 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2026

  1. Address PR review: rename database.dbname → database.name, deprecate …

    …database_prefix
    
    Review feedback from PR #1426:
    
    1. Rename setting to database.name (env: DJ_DATABASE_NAME) to match
       section naming style and avoid stutter. Connection kwarg is
       database_name. Adapter still receives dbname (psycopg2's parameter).
    
    2. Deprecate database_prefix — emit DeprecationWarning when non-empty.
       Will be removed in DataJoint 2.3. database.name is the replacement.
    
    3. Revert version.py to 2.2.0 — release workflow owns version bumps.
    
    4. Warn when database.name is set with MySQL backend (MySQL does not
       support database selection via this parameter).
    
    5. Include database name in Connection.__repr__ and log message when set.
       Format: user@host:port/database_name
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    kushalbakshi and claude committed Apr 7, 2026
    Configuration menu
    Copy the full SHA
    78a94fb View commit details
    Browse the repository at this point in the history
  2. style: fix line length in Connection.__repr__

    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    kushalbakshi and claude committed Apr 7, 2026
    Configuration menu
    Copy the full SHA
    8e3d39b View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1422 from datajoint/fix/readme-contributing-link

    Fix CONTRIBUTING.md link for PyPI
    kushalbakshi authored Apr 7, 2026
    Configuration menu
    Copy the full SHA
    367f5d1 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2026

  1. refactor: move database_prefix deprecation warning to Schema.activate()

    Move the DeprecationWarning from Pydantic model validator (fires at
    config load time with unhelpful stacklevel) to Schema.activate() where
    database_prefix is consumed. The warning now points to the user's
    dj.Schema(...) call — exactly where they need to make a change.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    kushalbakshi and claude committed Apr 8, 2026
    Configuration menu
    Copy the full SHA
    e24605d View commit details
    Browse the repository at this point in the history
  2. style: remove extra blank line in settings.py

    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    kushalbakshi and claude committed Apr 8, 2026
    Configuration menu
    Copy the full SHA
    eabcfb0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1426 from kushalbakshi/master

    feat: add database.dbname setting for PostgreSQL connections
    dimitri-yatsenko authored Apr 8, 2026
    Configuration menu
    Copy the full SHA
    7e825eb View commit details
    Browse the repository at this point in the history
Loading