Skip to content

Commit

Permalink
🎨 fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGariepy committed Jul 28, 2022
1 parent 3384e99 commit 30f9eed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cornucopia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ pub struct CodegenSettings {
pub derive_ser: bool,
}

/// Generates Rust queries from PostgreSQL queries located at `queries_path`,
/// using a live database managed by you. If some `destination` is given,
/// Generates Rust queries from PostgreSQL queries located at `queries_path`,
/// using a live database managed by you. If some `destination` is given,
/// the generated code will be written at that path. Code generation settings are
/// set using the `settings` parameter.
pub fn generate_live(
Expand All @@ -61,11 +61,11 @@ pub fn generate_live(
Ok(generated_code)
}

/// Generates Rust queries from PostgreSQL queries located at `queries_path`, using
/// Generates Rust queries from PostgreSQL queries located at `queries_path`, using
/// a container managed by cornucopia. The database schema is created using `schema_files`.
/// If some `destination` is given, the generated code will be written at that path.
/// Code generation settings are set using the `settings` parameter.
///
///
/// By default, the container manager is Docker, but Podman can be used by setting the
/// `podman` parameter to `true`.
pub fn generate_managed(
Expand Down
4 changes: 2 additions & 2 deletions cornucopia/src/load_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use crate::utils::db_err;

use self::error::Error;

/// Loads PostgreSQL schemas into a database.
///
/// Loads PostgreSQL schemas into a database.
///
/// Takes a list of file paths as parameter and loads them in their given order.
pub fn load_schema(client: &mut Client, paths: Vec<String>) -> Result<(), Error> {
for path in paths {
Expand Down

0 comments on commit 30f9eed

Please sign in to comment.