Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest from master #620

Merged
merged 2 commits into from Jan 28, 2021
Merged

Latest from master #620

merged 2 commits into from Jan 28, 2021

Commits on Jan 27, 2021

  1. Latest from development (#617)

    * fix: improve model ID field customization (#604)
    
    Updates places where `"id"` was hardcoded instead of using `model.IDField()`.
    
    * Ensure uninitialized map is initialized when unmarshaling json
    Add tests for this scenario
    
    * exclude migration_table_name from connection string
    
    * add test for OptionsString
    
    * Add support for pointer FKs when preloading a belongs_to association (#602)
    
    * feat: support context-aware tablenames (#614)
    
    This patch adds a feature which enables pop to pass down the connection context to the model's TableName() function by implementing TableName(ctx context.Context) string. The context can be used to dynamically generate tablenames which can be important for prefixed or generic tables and other use cases.
    
    * Bump pg deps (#616)
    
    * Reset to development
    
    * bumping pgx and pgconn versions
    
    Co-authored-by: Stanislas Michalak <stanislas.michalak@gmail.com>
    Co-authored-by: Larry M Jordan <larrymoralesjordan@gmail.com>
    
    Co-authored-by: Patrik <zepatrik@users.noreply.github.com>
    Co-authored-by: Michael Montgomery <mmontg1@gmail.com>
    Co-authored-by: kyrozetera <jasonhale.w@gmail.com>
    Co-authored-by: Reggie Riser <4960757+reggieriser@users.noreply.github.com>
    Co-authored-by: hackerman <3372410+aeneasr@users.noreply.github.com>
    Co-authored-by: Stanislas Michalak <stanislas.michalak@gmail.com>
    Co-authored-by: Larry M Jordan <larrymoralesjordan@gmail.com>
    8 people committed Jan 27, 2021
    Copy the full SHA
    c81c996 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2021

  1. Copy the full SHA
    5a8f51c View commit details
    Browse the repository at this point in the history