Commit graph

1234 commits

Author SHA1 Message Date
Ryan Leckey
8d1368f163 fix(sqlite): with caching disabled force persistent to false
additionally, set persistent to true for a cached statement and
correctly only reset the statement when its being reused
2020-06-25 03:44:26 -07:00
Ryan Leckey
8d24dfc0ef feat(cache): expose capacity on StatementCache 2020-06-25 03:43:31 -07:00
Ryan Leckey
8600e5d9d2
Merge pull request #444 from pimeys/lru
LRU Statement Caching
2020-06-25 03:39:18 -07:00
Julius de Bruijn
363dbfb81e No need to reset the statement when dropping. 2020-06-25 12:38:20 +02:00
Julius de Bruijn
745a32ab60 Close pg statements correctly 2020-06-25 12:26:44 +02:00
Julius de Bruijn
f969798cb6 Document new connection string params 2020-06-25 11:57:55 +02:00
Julius de Bruijn
2c2a277666 Caching methods in Connection 2020-06-25 10:44:05 +02:00
Julius de Bruijn
eba82e3fc1 LRU caching for SQLite 2020-06-24 19:46:32 +02:00
Julius de Bruijn
5d64310004 LRU caching for PostgreSQL 2020-06-24 19:01:54 +02:00
Julius de Bruijn
2b6f242a22 LRU statement cache for MySQL 2020-06-24 16:57:06 +02:00
Tim Murison
72c4e040bc Require a mutable reference to self 2020-06-23 17:03:48 -07:00
Tim Murison
cac3f193d7 Adds a method get the underlying sqlite3 pointer 2020-06-23 17:03:48 -07:00
Zachery Gyurkovitz
2adfb1926a misc: Don't deadname myself in the authors 2020-06-23 13:10:03 -07:00
Zachery Gyurkovitz
84e8ed0d4c fix: bigdecimal decoding ob1 for positive weight multiples of 4 2020-06-23 13:10:03 -07:00
Ryan Leckey
f85920acaf fix(postgres): ignore more harmless messages in execute 2020-06-21 22:09:00 -07:00
Austin Bonander
36a53b44cd fix(macros): don't emit typechecking code for explicit type overrides on bind params 2020-06-21 06:06:53 -07:00
Austin Bonander
f2515e2472 feat(macros): support nullable column override 2020-06-21 06:06:53 -07:00
Austin Bonander
897c8f429a doc(macros): document type override feature for macros 2020-06-21 06:06:53 -07:00
Austin Bonander
7b37ebde0f fix(macros): forbid casts to _ in bind parameters 2020-06-21 06:06:53 -07:00
Austin Bonander
029ba24cad chore(macros): add tests for bind parameter overrides 2020-06-21 06:06:53 -07:00
Austin Bonander
7d3d708d92 chore(macros): add test for column overrides for SQLite 2020-06-21 06:06:53 -07:00
Austin Bonander
1a250976ba chore(macros): add test for column overrides for MySQL 2020-06-21 06:06:53 -07:00
Austin Bonander
14023e8e6e feat(macros): support wildcard in bind param type overrides 2020-06-21 06:06:53 -07:00
Austin Bonander
eb831382e5 feat(macros): type override annotations for columns 2020-06-21 06:06:53 -07:00
Ryan Leckey
efc4df3eea test: state only version 3 for docker-compose 2020-06-21 04:35:28 -07:00
Ryan Leckey
8800a40979 test: tokio or actix should import tokio in pool_smoke_test 2020-06-21 04:34:29 -07:00
Ryan Leckey
3dc067f031 fix: downgrade num-bigint due to conflicting version in rsa 2020-06-21 04:13:45 -07:00
Ryan Leckey
ec6b4be7fb fix: rename Decode::accepts to Type::compatible for MSSQL / bool 2020-06-21 04:13:33 -07:00
Ryan Leckey
9abdd7e408 style: rustfmt 2020-06-21 04:08:17 -07:00
Ryan Leckey
7c4c185698 chore: update dependencies 2020-06-21 03:55:31 -07:00
Ryan Leckey
4448c0e629 feat: add should_flush and only spawn on drop for PoolConnection if we need to flush 2020-06-21 03:55:31 -07:00
Ryan Leckey
d76002e110 postgres: ignore more messages during execution if they are deemed not relevant 2020-06-21 03:55:31 -07:00
Ryan Leckey
f8dc7284b9 chore: update dependencies 2020-06-21 03:55:31 -07:00
Ryan Leckey
e7e2f5b37a fix: implement transparent Serialize and Deserialize for Json<_> 2020-06-21 03:55:31 -07:00
Ryan Leckey
93728a051c fix: impl Deserialize for Json for MySQL instead of DeserializeOwned 2020-06-21 03:55:31 -07:00
Peter Maatman
90242494a8 test: expose missing trait bounds for Json<Vec<x>> 2020-06-21 03:55:31 -07:00
Ryan Leckey
8b4ef3f0b8 docs: add back type module documentation 2020-06-21 03:55:31 -07:00
Ryan Leckey
21717b47a0 fix: AsyncStream should use a zero-capacity stream to ensure we run in lock-step 2020-06-21 03:55:31 -07:00
Ryan Leckey
6cfe5ac811 refactor: tweak type name display to use TypeInfo::name 2020-06-21 03:55:31 -07:00
Ryan Leckey
aaa475cc33 refactor: move Decode::accepts to Type::compatible 2020-06-21 03:55:31 -07:00
Ryan Leckey
5ac7601fe2 docs: extend documentation on Encode/Decode 2020-06-21 03:55:31 -07:00
Ryan Leckey
11e21e201c feat: add a name method to TypeInfo 2020-06-21 03:55:31 -07:00
Ryan Leckey
e3adb88ab5 feat: disassociate Type from Decode further and require only Decode for FromRow + Row + Value 2020-06-21 03:55:31 -07:00
Austin Bonander
37e59f1494
doc(readme): note requirement of offline feature
for `cargo sqlx prepare`
2020-06-17 12:50:56 -07:00
Austin Bonander
1a83f1bdc1
fix(format): fix formatting in sqlx-cli/README.md 2020-06-17 12:46:57 -07:00
Daniel Akhterov
639e10248e
feat: add boolean support to sqlx-macros/mssql 2020-06-16 13:40:53 -07:00
Daniel Akhterov
6a26e341fb
Merge pull request #413 from launchbadge/feature/mssql-bit-support
Feature: implement `BIT` support in MSSQL
2020-06-15 22:55:00 -07:00
Daniel Akhterov
80d545109b
feat: implement BIT support in MSSQL 2020-06-15 22:49:33 -07:00
Bo Jeanes
956721c96c Don't leak txns on explicit commit/rollback
Fixes #409
2020-06-14 20:03:50 -07:00
Ryan Leckey
e10c7c723f refactor: remove impl of Encode::produces where it doesn't make sense
produces is meant as a value-dependent override, it only makes sense
currently for MSSQL or in generic contexts
2020-06-13 10:18:04 -07:00