Jonas Platte
|
b14266ba2e
|
Add rustls support
|
2020-11-12 07:32:59 -08:00 |
|
Jonas Platte
|
a161bcba05
|
Rename cargo features in preparation for rustls support
|
2020-11-12 07:32:21 -08:00 |
|
Ryan Leckey
|
86d41f17aa
|
Merge remote-tracking branch 'origin/ab/macro-refresh'
|
2020-07-26 17:54:23 -07:00 |
|
Ryan Leckey
|
e575501a39
|
feat: add Executor::prepare, a hook into the automatic statement preparation life-cycle
|
2020-07-24 07:24:23 -07:00 |
|
Austin Bonander
|
94aa698581
|
refactor(macros): remove ResultExt and macro_result!()
|
2020-07-21 21:19:31 -07:00 |
|
Ryan Leckey
|
6949b84e8c
|
style: rustfmt
|
2020-07-15 02:31:57 -07:00 |
|
Ryan Leckey
|
3884bf272d
|
refactor: expose Encode/Decode from crate root
|
2020-07-15 02:05:13 -07:00 |
|
Ryan Leckey
|
00137d4a04
|
feat: add sqlx::Done and return from Executor::execute()
+ Done::rows_affected()
+ Done::last_insert_id()
|
2020-07-14 04:31:25 -07:00 |
|
Ryan Leckey
|
93cab2a197
|
test: more pool usage adjustments
|
2020-07-12 05:02:40 -07:00 |
|
Ryan Leckey
|
e765287dba
|
refactor: restructure relationship between Pool, Connection, and Options
* Pool::new -> Pool::connect
* Add Pool::connect_lazy
* Pool::builder -> PoolOptions::new
* PoolConnection no longer implements Connection
* Transaction no longer implements Connection
* Add ConnectOptions::connect
* Add Acquire - abstract between &Pool and &mut Connection within one function
* Remove Connect, move connect to Connection
Co-authored-by: Austin Bonander <austin@launchbadge.com>
|
2020-07-12 03:43:55 -07:00 |
|
Ryan Leckey
|
8d188c5f1a
|
feat: expose column information on Row
- add database-specific Column types: MySqlColumn, PgColumn, etc.
- add Row::columns() -> &[DB::Column]
- add Row::column(I) and Row::try_column(I)
|
2020-07-05 03:48:36 -07:00 |
|
Ryan Leckey
|
5d6516da68
|
fix: re-add MapRow and TryMapRow to fix HRTB normalization when more than one driver is in-use
|
2020-07-02 23:00:46 -07:00 |
|
Ryan Leckey
|
a7117dd71b
|
feat(any): introduce the Any database driver which enables choosing the database driver at runtime
|
2020-06-27 04:07:40 -07:00 |
|
Ryan Leckey
|
8b4ef3f0b8
|
docs: add back type module documentation
|
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
|
e3adb88ab5
|
feat: disassociate Type from Decode further and require only Decode for FromRow + Row + Value
|
2020-06-21 03:55:31 -07:00 |
|
Ryan Leckey
|
c9f3e1adca
|
feat(postgres): add support for built-in range types and allow derives to handle custom range types
Co-authored-by: Caio <c410.f3r@gmail.com>
|
2020-06-12 15:33:19 -07:00 |
|
Ryan Leckey
|
a0ccc135aa
|
style(mssql): rename MsSql to Mssql as MSSQL is not written MsSQL
|
2020-06-07 05:39:12 -07:00 |
|
Ryan Leckey
|
9a701313bc
|
feat(mssql): implement enough to get simple queries working
Co-authored-by: Daniel Akhterov <akhterovd@gmail.com>
|
2020-06-07 02:00:12 -07:00 |
|
dignifiedquire
|
9b68eb19ef
|
fix(sqlx-macros): update trait definitions
|
2020-06-05 19:49:31 -07:00 |
|
Ryan Leckey
|
990466ec02
|
fix(cli): fix core usage in sqlx-cli
|
2020-05-30 23:12:53 -07:00 |
|
Ryan Leckey
|
9d2a0141cb
|
feat: introduce IntoArguments, query_with, query_as_with, and query_scalar_with
|
2020-05-30 17:51:55 -07:00 |
|
Ryan Leckey
|
88532ffc28
|
refactor: clean up warnings
|
2020-05-30 17:51:49 -07:00 |
|
Ryan Leckey
|
ad2cf1676f
|
mysql: tweak type equivalence rules to try and support both rust best practices but still be compatible with the loose types of mysql
|
2020-03-25 03:56:39 -07:00 |
|
Ryan Leckey
|
1940b685d3
|
fix warnings from rustdoc
|
2020-03-24 01:36:17 -07:00 |
|
Ryan Leckey
|
0182ce92f2
|
make sqlx_core::runtime private and add a runtime module to sqlx-macros
|
2020-03-24 01:19:03 -07:00 |
|
Ryan Leckey
|
5ada3f3ae6
|
Implement #[derive(FromRow)]
|
2020-03-23 21:18:03 -07:00 |
|
Ryan Leckey
|
2a8906d1e5
|
add more documentation
|
2020-03-18 22:46:44 -07:00 |
|
Ryan Leckey
|
f7fd83381d
|
Move RefExecutor into a now public executor module
|
2020-03-18 22:46:44 -07:00 |
|
Tom Dohrmann
|
c3aeb275c2
|
add derive macros for weak & strong enums and structs
|
2020-03-16 22:58:25 -07:00 |
|
Ryan Leckey
|
c44084dd11
|
move around re-exports
|
2020-03-16 19:54:46 -07:00 |
|
Ryan Leckey
|
444ffff127
|
Run rustfmt
|
2020-03-14 17:43:44 -07:00 |
|
Ryan Leckey
|
7ab07016da
|
sqlite: initial work in connection
|
2020-03-14 17:43:44 -07:00 |
|
Ryan Leckey
|
ffa4420c08
|
remove dead_code allow (lints fixed now)
|
2020-03-11 02:49:06 -07:00 |
|
Ryan Leckey
|
f39852032a
|
Add another missing import
|
2020-03-11 01:58:02 -07:00 |
|
Ryan Leckey
|
a9c3d9f44c
|
Run rustfmt
|
2020-03-11 01:49:47 -07:00 |
|
Ryan Leckey
|
14c70f2854
|
Add a few missing imports (from the rebase)
|
2020-03-11 01:49:11 -07:00 |
|
Ryan Leckey
|
c9df8acc41
|
Add zero-allocation to MySQL query execution
WIP mysql compiles with types and executor commented out
|
2020-03-11 01:47:29 -07:00 |
|
Austin Bonander
|
800af574c5
|
query_macros: allow Option<&str> to be passed in place of String
closes #93
|
2020-03-11 01:47:16 -07:00 |
|
Ryan Leckey
|
10232a2cdc
|
remove re-exports from sqlx-core and let sqlx fully define the module layout
|
2020-03-11 01:45:04 -07:00 |
|
Ryan Leckey
|
f337f1c602
|
postgres: implement text mode for chrono and clean up type tests
|
2020-03-11 01:44:41 -07:00 |
|
Ryan Leckey
|
47f3d77e59
|
query_as: fully implement query_as, required a db-specific ext trait
|
2020-03-11 01:44:41 -07:00 |
|
Ryan Leckey
|
433aab1e5b
|
postgres: use RawValue in Decode and implement row-returning simple queries
|
2020-03-11 01:44:06 -07:00 |
|
Austin Bonander
|
0cb7bd1185
|
make macros work again
|
2020-03-11 01:43:27 -07:00 |
|
Ryan Leckey
|
a374c18a18
|
postgres: rewrite protocol in more iterative and lazy fashion
|
2020-03-11 01:43:17 -07:00 |
|
Ryan Leckey
|
ea1a4fb042
|
add Cursor and rewrite Executor/Query over it
* this breaks a lot internally as-is
* mysql needs a restructure
|
2020-03-11 01:43:04 -07:00 |
|
Anthony Dodd
|
5dae1b6842
|
Export sqlx_core::Transaction.
|
2020-02-24 20:45:41 -06:00 |
|
Austin Bonander
|
214467841d
|
Merge pull request #85 from yaahc/unstable-features
Add doc_cfg attributes for conditional portions of the API
|
2020-01-27 16:04:18 -08:00 |
|
Austin Bonander
|
f0c88da152
|
Merge pull request #71 from Freax13/master
add derives for Encode and Decode
|
2020-01-24 13:13:06 -08:00 |
|