Ryan Leckey
371e843bb2
mysql: remove random println
2020-03-31 03:00:31 -07:00
Valerio Pipolo
d4f42863c5
Add a basic CONTRIBUTING doc
2020-03-31 11:34:52 +02:00
Ryan Leckey
a84e1f6626
Prepare v0.3.1
2020-03-30 18:53:03 -07:00
Ryan Leckey
b65602d842
postgres: remove unused import
2020-03-30 18:52:52 -07:00
Ryan Leckey
c6b0ceed34
update lockfile
2020-03-30 18:46:31 -07:00
Ryan Leckey
d820763bb9
mysql: infer empty password to mean no password
2020-03-30 18:42:25 -07:00
Ryan Leckey
d3eb9c7800
postgres: use PgStream::receive over PgStream::read to handle errors
...
* PgStream::read should probably be named better; maybe PgStream::raw_receive
Fixes #203
2020-03-30 18:38:31 -07:00
Ryan Leckey
bbbc1811ce
postgres: tweak DataRow::read
2020-03-30 18:31:05 -07:00
Ryan Leckey
9be0401b38
Merge pull request #200 from sidred/fromrow-keyword-fix
...
Process keyword fields correctly in FromRow macro
2020-03-30 17:13:14 -07:00
Ryan Leckey
40954b0272
Merge pull request #205 from Ace4896/restructure-examples
...
Restructure Examples Folder
2020-03-30 17:12:25 -07:00
Ryan Leckey
5676930526
Update README.md
2020-03-30 16:39:59 -07:00
Ryan Leckey
9450833edf
Update README.md
2020-03-30 16:37:46 -07:00
Jon Pacheco
501ed887e3
Restructure examples folder
2020-03-31 00:35:07 +01:00
Ryan Leckey
785163f5ea
Update CHANGELOG.md
2020-03-30 11:48:27 -07:00
sid
40f11ebb77
Process keyword fields correctly in FromRow macro
...
This PR fixes the the incorrect handling of keywords fields of a struct in the FromRow macro.
Currently a struct with a field like 'r#type' will try to read values from a column with the exact same name with r# prefix. With this change this field will now map to a database column with the correct name 'type' without the r# prefix.
2020-03-30 19:30:50 +05:30
Ryan Leckey
670265f103
docs: fix link to db types
2020-03-29 16:34:05 -07:00
Ryan Leckey
4dfa50d85c
Update README.md
2020-03-29 16:33:29 -07:00
Ryan Leckey
fc3d06bf9b
Prepare v0.3.0
2020-03-29 16:27:41 -07:00
Ryan Leckey
6de52567d7
docs: fix link to db types
2020-03-29 16:00:51 -07:00
Ryan Leckey
4ec9e9fce2
mysql: remove MySqlTypeInfo from mysql::types
2020-03-29 16:00:02 -07:00
Ryan Leckey
4b9a615b32
sqlite: remove SqliteTypeInfo from sqlite::types
2020-03-29 15:57:59 -07:00
Ryan Leckey
b8537d0a87
sqlite: condense allow(unsafe_code)
2020-03-29 15:55:09 -07:00
Ryan Leckey
913f906d81
docs: enable all database drivers and types
2020-03-29 15:54:59 -07:00
Ryan Leckey
2b06386bf1
sqlite: remove two unused imports
2020-03-29 15:53:04 -07:00
Ryan Leckey
b6d87a4cc7
require Rows to be Sync
2020-03-29 15:52:49 -07:00
Ryan Leckey
5fa11da353
use sqlx_test over connect fn in test
2020-03-29 14:40:02 -07:00
Ryan Leckey
7a59e383bf
Update lockfile
2020-03-29 14:29:55 -07:00
Ryan Leckey
185f991424
Update README
2020-03-29 13:45:52 -07:00
Ryan Leckey
c59d7aeebe
macro tests: update for null inferrence
2020-03-29 01:33:12 -07:00
Ryan Leckey
3d590c5d66
macros: remove try_unwrap_optional from _unchecked codepath
2020-03-29 01:27:57 -07:00
Jesper Axelsson
fcd6ef43a4
Remove LICENSE and change homepage
2020-03-29 09:51:42 +02:00
Jesper Axelsson
e577358686
Added migration tool to sqlx
2020-03-29 09:39:59 +02:00
Austin Bonander
fb50968ec7
update schema in SQLite test DB
2020-03-28 17:50:27 -07:00
Austin Bonander
604f2f308d
document nullability changes of query*!()
2020-03-28 17:50:27 -07:00
Austin Bonander
73a9155b46
fix import of from_utf8_unchecked()
2020-03-28 17:50:27 -07:00
Austin Bonander
4b51c16cce
MySQL: tweak macro test a bit
2020-03-28 17:50:27 -07:00
Austin Bonander
4ffa7f0e01
SQLite: implement column nullability checking
2020-03-28 17:50:27 -07:00
Austin Bonander
fe00c0d619
sqlite/statement.rs: lift #[allow(unsafe_code)]
to module
2020-03-28 17:50:27 -07:00
Austin Bonander
6fde5a2579
implement nullability on macro output, test postgres
2020-03-28 17:50:27 -07:00
Oliver Bøving
bcb3959379
Add array of uuid, chrono, time, bigdecimal, and ipnetwork as well as JsonValue to query macro ( #154 )
...
* Add array of uuid, chrono, time, bigdecimal, and ipnetwork to query macro
* Comment out tests for arrays of BigDecimal
Currently arrays of BigDecimal doesn't in query macros compile.
As all of the other types work just fine, BigDecimal is simply omitted.
* Add serde_json::Value to query macros
This also adds serde_json as an optional dependency to sqlx_macros along
side a new json feature flag.
2020-03-28 17:28:47 -07:00
Ryan Leckey
0c7ab87924
Update README.md
2020-03-27 17:32:16 -07:00
Ryan Leckey
edb5ffbe77
Update README.md
2020-03-27 17:31:59 -07:00
Ryan Leckey
807fc8eacd
Update README.md
2020-03-27 17:31:43 -07:00
Ryan Leckey
0c5dfef22e
Update CHANGELOG
2020-03-27 17:13:17 -07:00
Ryan Leckey
db66163c9e
realworld: remove usge of &mut Pool as its no longer needed
2020-03-27 17:00:58 -07:00
Ryan Leckey
dddaefec41
postgres: capitalize the W in handling the WHERE field for notice
...
Fixes #120
2020-03-27 16:43:15 -07:00
Ryan Leckey
2f80621279
Add query_as_unchecked! and query_file_as_unchecked! to use the macro system with unchecked input and output
2020-03-27 16:37:28 -07:00
Ryan Leckey
a2d82d0ac1
Add Row::get_unchecked and Row::try_get_unchecked
2020-03-27 16:11:28 -07:00
Austin Bonander
e594a7fdca
Postgres: don't cache failed statement
2020-03-27 15:54:28 -07:00
Ryan Leckey
3103d50be8
postgres: implement PgTypeInfo::with_name
...
- remove PgTypeInfo::with_oid
- use a new PgRawBuffer type instead of Vec<u8> for encoding
2020-03-26 19:29:49 -07:00