Matt Paul
33521d6b74
Add docker-compose and .env
2020-12-19 05:31:21 +00:00
Matt Paul
b5504b27cd
Update readme
2020-12-19 05:31:21 +00:00
Matt Paul
0b45dd9e3f
Write test
2020-12-19 05:31:21 +00:00
Matt Paul
a5cede500e
Implement TodoRepo trait
2020-12-19 05:31:21 +00:00
Matt Paul
bc4c3bc066
Extract postgres todo repo struct
2020-12-19 05:31:21 +00:00
Matt Paul
6f363cf4ea
Make mockable-todos example compile
2020-12-19 05:31:21 +00:00
Matt Paul
7510316eb6
Make todos example compile
2020-12-19 05:31:21 +00:00
Matt Paul
da178405b9
Copy 'todos' example directory as starting point
2020-12-19 05:31:21 +00:00
Eric Semeniuc
ac0690822c
fix macro
2020-12-19 05:30:20 +00:00
Eric Semeniuc
159dc800bd
Add cfg sqlite condition
2020-12-19 05:30:20 +00:00
Eric Semeniuc
9d5050f6ee
Address pr feedback
2020-12-19 05:30:20 +00:00
Eric Semeniuc
e9e0f6d77b
add new example for migration
2020-12-19 05:30:20 +00:00
Ryan Leckey
f5ae543128
docs: tweak quickstart fix PR for review comments
2020-12-18 21:29:38 -08:00
Kezi
57fb05fb06
use toml language in example
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com >
2020-12-19 05:28:00 +00:00
Kezi
d2271a5102
remove useless use
2020-12-19 05:28:00 +00:00
Kezi
65a2bd3cba
Make quickstart actually quick
...
fixes #760
2020-12-19 05:28:00 +00:00
Ryan Leckey
5e263b2f7a
chore: update lockfile
2020-12-18 21:26:21 -08:00
Ryan Leckey
e6d336fa9a
fix(tests): update x.py with new runtime-* features
2020-12-18 21:26:16 -08:00
Ryan Leckey
f8ee2dd068
fix(sqlite): implement Encode on Uuid and Hyphenated not references to them
2020-12-18 21:26:00 -08:00
James Tomlinson
522e45c994
Add Sqlite Uuid type tests.
2020-12-18 21:20:47 -08:00
James Tomlinson
302db717aa
Fix formatting (cargo fmt)
2020-12-18 21:20:42 -08:00
James Tomlinson
0631384f4d
Uuid support for Sqlite.
...
Includes the same support for the Hyphenated adapter as the MySQL
Uuid support.
2020-12-18 21:20:33 -08:00
Joe Grund
3e1da43434
Support workspaces for offline feature
...
This patch enables having a top-level `sqlx-data.json` file within a
workspace.
It does this by using a full clean / check instead of `cargo rustc`
which fails on a workspace.
A `--merged` flag is introduced to switch to the workspace behavior
Fixes #353 .
Signed-off-by: Joe Grund <jgrund@whamcloud.io >
2020-12-19 05:17:07 +00:00
Andrew Whitehead
b188c83717
manually close connections in SharedPool::close
2020-12-17 23:24:42 -08:00
Andrew Whitehead
07fd531a30
decrement pool size when connection is released
2020-12-17 23:24:42 -08:00
Chris Sosnin
df1b9b06ed
sqlite: fix memory leak
2020-12-17 00:55:45 -08:00
Pleto
9f99a8f3d2
add 1 as true for SQLX_OFFLINE env variable
2020-12-17 00:54:21 -08:00
Fangdun Cai
4973ae5a58
fix: whoami crash on FreeBSD aarch platform
2020-12-17 00:53:35 -08:00
Chris Sosnin
35325ef6a1
Keep tests from reverted commit
2020-12-10 22:30:51 +03:00
Chris Sosnin
9747218ad3
postgres: fix decimal conversions
2020-12-10 22:22:33 +03:00
Chris Sosnin
82b66b29a3
Revert "Fixing BigDecimal conversion for PostgreSQL"
...
This reverts commit a0007b4e98 .
2020-12-10 22:02:01 +03:00
chertov
04647ae09a
Replace lru-cache with hashlink
2020-12-02 18:41:49 -08:00
alex.berger@nexiot.ch
8379728d6e
fix formatting
2020-11-27 17:58:05 +01:00
alex.berger@nexiot.ch
6ecdb83bc2
Add support for passing in-memory trusted certificates in addition to the already supported path to trusted certificates.
2020-11-27 17:43:24 +01:00
Marcin Kaźmierczak
7f1bff406d
fix clipyy warnings
2020-11-24 16:15:22 -08:00
Dominic
204a65a464
Fix path for &[NaiveTime] in query! macro
2020-11-24 16:08:53 -08:00
sid
e8c073c5e2
fix migrate marco to take migration type
2020-11-24 16:04:43 -08:00
sid
f41551f3ad
reversible migrations for cli
...
- adds a -r flag whihc will create a reversible migration
- add revert subcommand, which reverts the last migration
- add --dry-run flag to migration run command, which list the migrations that will be applied
- updates add migration to check if all migration are of same type, i.e cannot mix and match reversible and simple migrations
2020-11-24 16:04:43 -08:00
Marcin Kaźmierczak
70fa667063
fix fetch_optional for sqlite
2020-11-24 16:01:52 -08:00
Josh Triplett
603c1950fe
Add tests for git2
2020-11-21 14:32:29 -08:00
Josh Triplett
71a72e7c67
Add support for git2::Oid (under the git2 feature flag)
...
This allows queries to convert between Oid and SQL data types.
2020-11-21 14:32:29 -08:00
Josh Triplett
d396e5a948
Add tests for bstr
2020-11-21 14:32:29 -08:00
Josh Triplett
47b0973bdb
Add support for bstr::BString (under the bstr feature flag)
...
This allows queries to convert between BString and SQL data types.
2020-11-21 14:03:11 -08:00
o0Ignition0o
bfa58417a1
dontt allow(clippy::all) twice, just put one in brackets.
2020-11-19 14:06:25 -08:00
o0Ignition0o
52d482ffd1
Wrap allow(clippy::all) twice to avoid potential stability errors in the future.
2020-11-19 14:06:25 -08:00
o0Ignition0o
4b223af2d3
let's add a couple more brackets
2020-11-19 14:06:25 -08:00
o0Ignition0o
9dc039c1ff
#[allow(clippy::all)] on all of the generated code.
2020-11-19 14:06:25 -08:00
o0Ignition0o
9d11c7a7f1
Allow clippy::suspicious_else_formatting when expanding query arguments.
...
Expanding several query arguments in the query! macro creates several if false { ... } statements, which in turn trigger clippy's suspicious_else_formatting (https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting ).
This commit allows the clippy lint so users won't be disturbed by it.
2020-11-19 14:06:25 -08:00
Jonas Platte
c1e79d2675
Simplify pattern matching in postgres/type_info.rs
2020-11-19 14:04:07 -08:00
Jonas Platte
3c7c266eac
Fix some clippy lints
2020-11-19 14:04:07 -08:00