-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Comparing changes
Open a pull request
base repository: launchbadge/sqlx
base: main
head repository: rmagatti/sqlx
compare: main
- 14 commits
- 9 files changed
- 2 contributors
Commits on Oct 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 00d63e1 - Browse repository at this point
Copy the full SHA 00d63e1View commit details
Commits on Nov 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cb190bd - Browse repository at this point
Copy the full SHA cb190bdView commit details
Commits on Apr 22, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 9c07a03 - Browse repository at this point
Copy the full SHA 9c07a03View commit details
Commits on May 25, 2025
-
Configuration menu - View commit details
-
Copy full SHA for c9148a0 - Browse repository at this point
Copy the full SHA c9148a0View commit details
Commits on Jul 11, 2025
-
Merge upstream main while preserving custom environment variable supp…
…ort for migrations schema and table
Configuration menu - View commit details
-
Copy full SHA for 6be8f5d - Browse repository at this point
Copy the full SHA 6be8f5dView commit details
Commits on Jul 15, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 190d9d4 - Browse repository at this point
Copy the full SHA 190d9d4View commit details -
feat(migrate): move custom schema/table config to core level
Move PostgreSQL-specific custom schema and table name functionality from the Postgres implementation to the core configuration level, making it available for all databases while respecting their schema support. - Add database-specific configuration via `[migrate.drivers.postgres]` - Support environment variables SQLX_MIGRATIONS_TABLE and SQLX_MIGRATIONS_SCHEMA - Add qualified_table_name() method that returns schema-qualified names for PostgreSQL - Update CLI to use backend_name() to detect database type - Remove hardcoded environment variables from Postgres implementation - Maintain backward compatibility with existing environment variables This provides a cleaner, more maintainable approach that works across all databases while properly handling PostgreSQL's schema support.
Configuration menu - View commit details
-
Copy full SHA for 040db2e - Browse repository at this point
Copy the full SHA 040db2eView commit details -
fix(migrate): ensure environment variables work with config file loading
When loading config from a TOML file, environment variables were not being read because the Default trait is only called for missing fields during deserialization. This fix ensures that SQLX_MIGRATIONS_TABLE and SQLX_MIGRATIONS_SCHEMA are checked at runtime in the qualified_table_name() and postgres_schema() methods. This ensures environment variables work correctly whether using Config::default() directly or loading from a sqlx.toml file.
Configuration menu - View commit details
-
Copy full SHA for a2f3791 - Browse repository at this point
Copy the full SHA a2f3791View commit details
Commits on Jul 16, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 4dac3ee - Browse repository at this point
Copy the full SHA 4dac3eeView commit details -
fix(migrate): handle String return type from table_name() in macro
The migrate\! macro was expecting table_name() to return &str but it now returns String (to support schema-qualified names). This fix converts the String to &str before passing it to Cow::Borrowed. This allows the migrate\! macro to properly embed schema-qualified table names (like "my_schema._sqlx_migrations") at compile time when using sqlx.toml configuration.
Configuration menu - View commit details
-
Copy full SHA for 5093fd6 - Browse repository at this point
Copy the full SHA 5093fd6View commit details -
refactor(migrate): clean up PostgreSQL schema configuration implement…
…ation - Remove redundant qualified_table_name() method as table_name() already handles schema qualification - Fix test compilation error by removing undefined MIGRATION_TABLE reference - Extract duplicated schema creation logic into ensure_migration_schemas() helper - Remove commented dead code and unrelated debug logging - Update tests to reflect the simplified API The table_name() method now returns the appropriate format for each database: - PostgreSQL: schema.table (e.g., "public._sqlx_migrations") - Other databases: table only (e.g., "_sqlx_migrations") 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 3d4d14f - Browse repository at this point
Copy the full SHA 3d4d14fView commit details
Commits on Sep 4, 2025
-
Merge upstream changes: resolve connect() signature conflicts
- Accept upstream connect(config, opts) signature for crate::connect() - Preserve custom migration table_name functionality - Fix PostgreSQL schema handling with AnyConnection backend_name() - Update test table_name() call to use reference - All tests passing and functionality verified
Configuration menu - View commit details
-
Copy full SHA for 2c60615 - Browse repository at this point
Copy the full SHA 2c60615View commit details
Commits on Sep 8, 2025
-
Configuration menu - View commit details
-
Copy full SHA for a585f93 - Browse repository at this point
Copy the full SHA a585f93View commit details
Commits on Sep 11, 2025
-
Configuration menu - View commit details
-
Copy full SHA for f7163c5 - Browse repository at this point
Copy the full SHA f7163c5View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...main