File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -358,12 +358,14 @@ Differences from `query()`:
358
358
queries against ; the database does not have to contain any data but must be the same
359
359
kind (MySQL , Postgres , etc . ) and have the same schema as the database you will be connecting to at runtime .
360
360
361
- For convenience , you can use a . env file to set DATABASE_URL so that you don't have to pass it every time:
361
+ For convenience , you can use [a ` . env` file][dotenv] to set DATABASE_URL so that you don't have to pass it every time:
362
362
363
363
```
364
364
DATABASE_URL = mysql: // localhost/my_database
365
365
```
366
366
367
+ [dotenv]: https: // github.com/dotenv-rs/dotenv#examples
368
+
367
369
The biggest downside to `query! ()` is that the output type cannot be named (due to Rust not
368
370
officially supporting anonymous records). To address that, there is a `query_as! ()` macro that is
369
371
mostly identical except that you can name the output type .
You can’t perform that action at this time.
0 commit comments