sqlc-gen-sqlx 0.2.2

A sqlc plugin that generates type-safe sqlx Rust code from SQL queries.
Documentation
# Changelog

## [0.2.2]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.2.1...v0.2.2 (2026-07-01)


### Features

* Export generated SQL constants ([597babb]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/597babb1a5905fdaaceb681971418e976669cb70)

## [0.2.1]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.2.0...v0.2.1 (2026-05-18)


### Features

* Support borrowed parameter types via borrowed_rs_type override ([#19]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/19) ([6ce89a3]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/6ce89a3292b64ea0f2f0634d409a3f8e20ea831a)

## [0.2.0]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.1.7...v0.2.0 (2026-05-09)


### ⚠ BREAKING CHANGES

* callers using Queries::new(executor).foo(...) must switch to queries::foo(executor, ...).

### Features

* Emit free functions instead of Queries<E> methods ([#17]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/17) ([cd79857]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/cd79857eba012cf11e78a591209cdbdce07148a6)

## [0.1.7]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.1.6...v0.1.7 (2026-04-22)


### Bug Fixes

* Omit trailing next_placeholder increment after last param ([#15]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/15) ([6bb1b7e]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/6bb1b7e75ca835bc79f98e855a9ca7293f12a6c4)

## [0.1.6]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.1.5...v0.1.6 (2026-04-19)


### Bug Fixes

* Emit rustfmt-compliant #![allow] header ([#13]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/13) ([04acf9a]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/04acf9ada1b67c9de37489dc894fff6fc773b301)

## [0.1.5]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.1.4...v0.1.5 (2026-04-14)


### Features

* Derive Copy and Clone on Queries ([#11]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/11) ([c33d55f]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/c33d55fa526d22b7551d5b858cec51023d7359f9)

## [0.1.4]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.1.3...v0.1.4 (2026-04-13)


### Features

* Add Queries::into_inner ([#6]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/6) ([5e5058e]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/5e5058e0a0e05ac566cb81e1d9d292dac3797007)
* Initial commit ([e8693f3]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/e8693f3a6e100726a1c24422bca6c99fdc16ad07)
* Support PoolConnection via AsExecutor trait ([#4]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/4) ([0db4bde]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/0db4bde43c0b4812717a1fd1239dc7c1cd37ad83)

## [0.1.3]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.1.2...v0.1.3 (2026-04-13)


### Code Refactoring

* Simplify AsExecutor to use return-position impl Trait ([#8]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/8)

## [0.1.2]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.1.1...v0.1.2 (2026-04-13)


### Features

* Add Queries::into_inner ([#6]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/6) ([5e5058e]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/5e5058e0a0e05ac566cb81e1d9d292dac3797007)

## [0.1.1]https://github.com/mathematic-inc/sqlc-gen-sqlx/compare/v0.1.0...v0.1.1 (2026-04-13)


### Features

* Support PoolConnection via AsExecutor trait ([#4]https://github.com/mathematic-inc/sqlc-gen-sqlx/issues/4) ([0db4bde]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/0db4bde43c0b4812717a1fd1239dc7c1cd37ad83)

## 0.1.0 (2026-04-13)


### Features

* Initial commit ([e8693f3]https://github.com/mathematic-inc/sqlc-gen-sqlx/commit/e8693f3a6e100726a1c24422bca6c99fdc16ad07)