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

Merge launchbadge/sqlx master into JetASAP/sqlx master #12

Merged
merged 74 commits into from
Nov 19, 2021

Commits on Jun 15, 2021

  1. Fix error message about wildcard overrides (#1276)

    Co-authored-by: Austin Bonander <[email protected]>
    jplatte and abonander authored Jun 15, 2021
    Configuration menu
    Copy the full SHA
    e33e451 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Configuration menu
    Copy the full SHA
    bb330f8 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. Configuration menu
    Copy the full SHA
    6c8f61f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b54adfa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8204989 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0abbcc5 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2021

  1. Configuration menu
    Copy the full SHA
    be189bd View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. Configuration menu
    Copy the full SHA
    8bcac03 View commit details
    Browse the repository at this point in the history
  2. Keep track of column typing in SQLite EXPLAIN parsing (#1323)

    * NewRowid, Column opcodes, better pointer handling
    
    * Implement tracking of column typing on sqlite explain parser
    
    * fmt for sqlite column typing for explain parsing
    
    Co-authored-by: marshoepial <[email protected]>
    marshoepial and marshoepial authored Jul 21, 2021
    Configuration menu
    Copy the full SHA
    cb3ff28 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5317405 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a8544fd View commit details
    Browse the repository at this point in the history
  5. fix(macros): tell the compiler about external files/env vars to watch (

    …#1332)
    
    * fix(macros): tell the compiler about external files/env vars to watch
    
    closes #663
    closes #681
    
    * feat(cli): add `migrate` subcommand for generating a build script
    
    suggest embedding migrations on `sqlx migrate add` in a new project
    abonander authored Jul 21, 2021
    Configuration menu
    Copy the full SHA
    e89cb09 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2021

  1. Configuration menu
    Copy the full SHA
    b3ae6e5 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. Use tokio spawn_blocking instead of block_in_place (#1333)

    This fixes a panic when sharing an SQLite connection pool between tokio runtime and actix runtime
    guylapid authored Jul 23, 2021
    Configuration menu
    Copy the full SHA
    dc92c28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34db44b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0d0dce View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. Fix GitHub Actions and integration test (#1346)

    * fix test suite
    
    * rustfmt
    
    * need Row
    
    * test: fix integration test scripts and update the upstream supported databases
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    * ci(actions): update supported databases
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    * ci(actions): use `pg_isready` instead of `sleep` to avoid error cause by database not ready
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    * feat(core): add `trait PgConnectionInfo` for connection parameter status from server
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    * test(postgres): fix integration test for postgres
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    * test(mysql): fix integration tests
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    * ci(actions): test database against the oldest and newest supported versions
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    * docs(core): document `trait PgConnectionInfo`
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    Co-authored-by: Montana Low <[email protected]>
    AtkinsChang and Montana Low authored Jul 28, 2021
    Configuration menu
    Copy the full SHA
    9f7205e View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2021

  1. build(deps): bump git2 from 0.13.19 to 0.13.20 (#1362)

    Signed-off-by: Atkins Chang <[email protected]>
    AtkinsChang authored Aug 7, 2021
    Configuration menu
    Copy the full SHA
    55c603e View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. sqlite: fix a couple segfaults (#1351)

    * sqlite: use Arc instead of Copy-able StatementHandle
    
    This guarantees that StatementHandle is never used after calling
    `sqlite3_finalize`. Now `sqlite3_finalize` is only called when
    StatementHandle is dropped.
    
    (cherry picked from commit 5eebc05)
    
    * sqlite: use Weak poiter to StatementHandle in the worker
    
    Otherwise some tests fail to close connection.
    
    (cherry picked from commit 5461eee)
    
    * Fix segfault due to race condition in sqlite (#1300)
    
    (cherry picked from commit bb62cf7)
    
    * fix(sqlite): run `sqlite3_reset()` in `StatementWorker`
    
    this avoids possible race conditions without using a mutex
    
    * fix(sqlite): have `StatementWorker` keep a strong ref to `ConnectionHandle`
    
    this should prevent the database handle from being finalized before all statement handles
    have been finalized
    
    * fix(sqlite/test): make `concurrent_resets_dont_segfault` runtime-agnostic
    
    Co-authored-by: link2xt <[email protected]>
    Co-authored-by: Adam Cigánek <[email protected]>
    3 people authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    71388a7 View commit details
    Browse the repository at this point in the history
  2. Add docs for fetch_all, example for postgres transactions (#1255)

    * reference fetch_all() in query macros
    
    * add example for using transactions in postgres
    raffomania authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    e77219f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e7c3610 View commit details
    Browse the repository at this point in the history
  4. Fix bug for PostgreSQL if the statement has type holes (#1363)

    * fix: wait until ready after executing other helper queries while pg quering is executing
    
    Signed-off-by: Atkins Chang <[email protected]>
    
    * fix: use tls parameter for testing target
    
    Signed-off-by: Atkins Chang <[email protected]>
    AtkinsChang authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    dd27aa0 View commit details
    Browse the repository at this point in the history
  5. fix(cli): pin clap_derive version (#1381)

    When `clap_derive 3.0.0-beta.4` released, new invocations of `cargo install sqlx-cli` would try to compile that against `clap 3.0.0-beta.2` which caused some breakages.
    
    Until `clap 3.0.0` proper is released, we need to pin both versions to insure against potential breakages from automatic upgrades.
    
    closes #1378
    abonander authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    38435ca View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. Configuration menu
    Copy the full SHA
    774880d View commit details
    Browse the repository at this point in the history
  2. preparing 0.5.6 release (#1382)

    * fix(pool): reenable connection reaper
    
    * fix warnings
    
    * chore: bump published crates to 0.5.6
    
    * chore: update CHANGELOG.md for 0.5.6
    abonander authored Aug 17, 2021
    Configuration menu
    Copy the full SHA
    6bb1c71 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    207e6db View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2021

  1. Configuration menu
    Copy the full SHA
    c04f83b View commit details
    Browse the repository at this point in the history
  2. fix(postgres): avoid recursively spawning tasks in `PgListener::drop(…

    …)` (#1393)
    
    refactor(pool): deprecate `PoolConnection::release()`, provide renamed alts
    abonander authored Aug 20, 2021
    Configuration menu
    Copy the full SHA
    0e8ffb5 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2021

  1. Configuration menu
    Copy the full SHA
    3749e0e View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. Configuration menu
    Copy the full SHA
    0e51272 View commit details
    Browse the repository at this point in the history
  2. Use promptly instead of dialoguer (#1410)

    See #1409
    
    Co-authored-by: David James <[email protected]>
    xpe and David James authored Aug 30, 2021
    Configuration menu
    Copy the full SHA
    ad81e35 View commit details
    Browse the repository at this point in the history
  3. Getting current Handle in Drop (#1395)

    Signed-off-by: Freyskeyd <[email protected]>
    Freyskeyd authored Aug 30, 2021
    Configuration menu
    Copy the full SHA
    135d16a View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. Configuration menu
    Copy the full SHA
    d94c081 View commit details
    Browse the repository at this point in the history
  2. Don't require cargo to build offline queries (#1415)

    In particular building with bazel and cargo-raze doesn't imply having
    cargo at all, and deferring the lookup allows same-crate builds to
    succeed with no change to semantics.
    
    Fixes #1414
    
    Signed-off-by: Robert Collins <[email protected]>
    rbtcollins authored Sep 1, 2021
    Configuration menu
    Copy the full SHA
    89ee690 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    335eed4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    719d800 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2eb4ff8 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2021

  1. Reduce futures-util features (#1427)

    * Reduce futures-util features
    
    * Remove unused futures crate from sqlx-macros
    paolobarbolini authored Sep 8, 2021
    Configuration menu
    Copy the full SHA
    efd08cc View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. Fix issue #1431 (#1432)

    Why: dotenv() must execute before clap's get_matches()
    
    Co-authored-by: David James <[email protected]>
    xpe and David James authored Sep 10, 2021
    Configuration menu
    Copy the full SHA
    bb33a29 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    092f811 View commit details
    Browse the repository at this point in the history
  3. Support the immutable option on SQLite connections (#1289)

    Co-authored-by: Austin Bonander <[email protected]>
    djmarcin and abonander authored Sep 10, 2021
    Configuration menu
    Copy the full SHA
    687fbf9 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. Finish support for Postgres COPY (#1345)

    * feat(postgres): WIP implement `COPY FROM/TO STDIN`
    
    Signed-off-by: Austin Bonander <[email protected]>
    
    * feat(postgres): WIP implement `COPY FROM/TO STDIN`
    
    Signed-off-by: Austin Bonander <[email protected]>
    
    * test and complete support for postgres copy
    
    Co-authored-by: Austin Bonander <[email protected]>
    montanalow and abonander authored Sep 13, 2021
    Configuration menu
    Copy the full SHA
    ec510b3 View commit details
    Browse the repository at this point in the history
  2. fix: run cargo fmt

    abonander committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    2307f43 View commit details
    Browse the repository at this point in the history
  3. Support custom initial options for sqlite (#1295)

    * Support custom initial options for sqlite
    
    Apply suggestions from code review
    
    Co-authored-by: Austin Bonander <[email protected]>
    
    Apply suggestions from code review
    
    Co-authored-by: Austin Bonander <[email protected]>
    
    Use order-preserving map to set pragmas for an initial sqlite statement
    
     Use Cow<'static, str> instead of String
    
    Co-authored-by: Austin Bonander <[email protected]>
    ghassmo and abonander authored Sep 13, 2021
    Configuration menu
    Copy the full SHA
    a5997a2 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2021

  1. Configuration menu
    Copy the full SHA
    24c0d52 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2021

  1. fix(mysql): handle multiple waiting results correctly (#1439)

    * test(mysql): add test case for pending rows and dropped transaction
    
    * fix(mysql): handle multiple waiting results correctly
    eagletmt authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    593364f View commit details
    Browse the repository at this point in the history
  2. Fix a panic in the worker thread when dropping the connection while `…

    …SqliteRow`s still exist (#1450)
    
    * chore(sqlite): add repro for #1419
    
    * fix(sqlite): hold a reference to the connection in `SqliteRow`
    
    fixes #1419
    abonander authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    8b30f30 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2021

  1. Configuration menu
    Copy the full SHA
    c2e04a1 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2021

  1. Configuration menu
    Copy the full SHA
    6e1c7a9 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2021

  1. Shut down statement worker in Sqlite Connection::close (#1453)

    * add explicit shutdown of sqlite statement worker in Connection::close()
    
    Signed-off-by: Andrew Whitehead <[email protected]>
    
    * test sqlite database close method
    
    Signed-off-by: Andrew Whitehead <[email protected]>
    
    * await worker shutdown after dropping SqliteConnection
    
    Signed-off-by: Andrew Whitehead <[email protected]>
    
    * restore explicit drop
    
    Signed-off-by: Andrew Whitehead <[email protected]>
    andrewwhitehead authored Oct 1, 2021
    Configuration menu
    Copy the full SHA
    ba3e373 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51e45ce View commit details
    Browse the repository at this point in the history
  3. [SQLite] encoding & decoding NaiveTime with correct format (#1459)

    * Fix SQLite encoding format
    
    * Update SQLite decoding format
    
    * Update sqlx-core/src/sqlite/types/chrono.rs
    
    * fixup: add `#[rustfmt::skip]`
    
    Co-authored-by: Austin Bonander <[email protected]>
    Co-authored-by: Austin Bonander <[email protected]>
    3 people authored Oct 1, 2021
    Configuration menu
    Copy the full SHA
    8561891 View commit details
    Browse the repository at this point in the history
  4. Add reverting instructions to README (#1468)

    Instructions on reverting migrations are missing from the README. Here are some that others may find helpful.
    erewok authored Oct 1, 2021
    Configuration menu
    Copy the full SHA
    efde5c5 View commit details
    Browse the repository at this point in the history
  5. preparing 0.5.8 release (#1466)

    * preparing 0.5.8 release
    
    * fix warnings before release
    abonander authored Oct 1, 2021
    Configuration menu
    Copy the full SHA
    1b5dd65 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9abe9b3 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Update README.md (#1479)

    yerke authored Oct 20, 2021
    Configuration menu
    Copy the full SHA
    466d3f3 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. fix(test): fix mismatched type error in MySQL type tests (#1517)

    * fix new warning about trailing semicolon in expression macros
    
    * fix(test): fix mismatched type error in MySQL type tests
    abonander authored Oct 26, 2021
    Configuration menu
    Copy the full SHA
    d25ab07 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2021

  1. Add support for serialized threading mode to sqlite (#1514)

    * Add support for serialized threading mode
    
    * Typos
    
    * Fix build
    LLBlumire authored Nov 3, 2021
    Configuration menu
    Copy the full SHA
    4ada6ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1851e7 View commit details
    Browse the repository at this point in the history
  3. Reduce indexmap version to 1.6.2 (#1501)

    deno_core currently uses `=1.6.2` for indexmap, and Cargo refuses to resolve a version with sqlx's requirement of 1.7.0.
    
    https://github.com/denoland/deno/blob/004d07dccd69c9fae8370665632d90401f770938/core/Cargo.toml#L18
    dimfeld authored Nov 3, 2021
    Configuration menu
    Copy the full SHA
    1efbbca View commit details
    Browse the repository at this point in the history
  4. fix(postgres): allow rust_decimal::Decimal in PgRange (#1523)

    * fix(postgres): allow rust_decimal::Decimal in PgRange
    
    * test(postgres): add tests for BigDecimal and Decimal in ranges
    meh authored Nov 3, 2021
    Configuration menu
    Copy the full SHA
    62b57f0 View commit details
    Browse the repository at this point in the history
  5. Update FAQ to include building on docs.rs (#1497)

    Thanks to @jplatte in the sqlx Discord for providing this solution.
    russweas authored Nov 3, 2021
    Configuration menu
    Copy the full SHA
    069cfca View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2021

  1. Configuration menu
    Copy the full SHA
    b419bf5 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2021

  1. Configuration menu
    Copy the full SHA
    cdb40b1 View commit details
    Browse the repository at this point in the history
  2. fix panic when converting negative chrono::Duration into PgInterval (#…

    …1475)
    
    * fix PgInterval convert failure for negative chrono::Duration
    
    * add unit tests for PgInterval
    
    * Fix: remove redundancy because nanosecond overflow implies microsecond overflow
    yuyawk authored Nov 9, 2021
    Configuration menu
    Copy the full SHA
    626dd0d View commit details
    Browse the repository at this point in the history
  3. Encode/Decode impl for Cow<'_, str> (#1343)

    * Encode/Decode impl for Cow<'_, str>
    
    resolves #1214
    
    * --wip-- [skip ci]
    
    * Add Cow decode/encode to other databases and fix build
    Drevoed authored Nov 9, 2021
    Configuration menu
    Copy the full SHA
    df2d5c7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ce801b9 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. fix(readme): link to dotenv crate

    closes #1405
    abonander authored Nov 10, 2021
    Configuration menu
    Copy the full SHA
    51954fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    35c5e32 View commit details
    Browse the repository at this point in the history
  3. fix(readme): mention offline feature

    closes #1490
    abonander authored Nov 10, 2021
    Configuration menu
    Copy the full SHA
    3604c6b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fc05631 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c8db803 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2021

  1. Copy API improvement (#1536) (#1537)

    * expose PgCopyIn
    
    * downgrade Pool<Posgres> copy_in_raw/out_row to take &self
    akiradeveloper authored Nov 12, 2021
    Configuration menu
    Copy the full SHA
    a304161 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8299687 View commit details
    Browse the repository at this point in the history