mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
* feat: add fixtures_path * test: add test for fixtures_path * docs: expand test docs with fixtures_path * test: add new test instead of co-opting and old one. * feat: add explicit path operating mode for fixtures parameters and allow combining multiple fixtures parameters * fix: require .sql extension for explicit path fixtures * feat: add custom relative path style to fixtures argument * fix: missing cfg feature * docs: update * fix: explicit fixtures styling checks for paths. Remove strict sql extension requirement for explicit path, they still need an extension. Add .sql extension to implicit fixtures style only if missing. * style: cargo fmt * docs: update documentation
10 lines
259 B
SQL
10 lines
259 B
SQL
insert into post(post_id, user_id, content, created_at)
|
|
values (1,
|
|
1,
|
|
'This new computer is lightning-fast!',
|
|
timestamp(now(), '-1:00:00')),
|
|
(2,
|
|
2,
|
|
'@alice is a haxxor :(',
|
|
timestamp(now(), '-0:30:00'));
|