Skip to content

Commit

Permalink
fix: Move from cornucopia_async to maintained crate cornucopi_async
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsvante committed Jan 5, 2025
1 parent eefefdf commit d96e5c3
Show file tree
Hide file tree
Showing 34 changed files with 962 additions and 961 deletions.
34 changes: 24 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ axum-extra = { version = "0.9.6", features = ["typed-header"] }
base64 = "0.22.1"
bytes = { version = "1.9.0", features = ["serde"] }
clap = { version = "4.5.23", features = ["derive", "env"], optional = true }
cornucopia_async = { version = "0.7.0", features = [
"with-serde_json-1",
], registry = "hyperkliv" }
cornucopi_async = { version = "0.7.1", features = ["with-serde_json-1"] }
csv = "1.3.1"
deadpool-postgres = "0.14.1"
derive_more = { version = "1.0.0", features = ["full"] }
Expand Down
3 changes: 2 additions & 1 deletion generate-cornucopia-file.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
cornucopia \
cornucopi \
--queries-path=./queries \
--destination=src/cornucopia.rs \
schema \
./migrations/*.sql
cargo fmt -- ./src/cornucopia.rs
2 changes: 1 addition & 1 deletion src/admin/repo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cornucopia_async::GenericClient;
use cornucopi_async::GenericClient;
use futures::future::try_join4;

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion src/attributes/entities.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use async_trait::async_trait;
use cornucopia_async::GenericClient;
use cornucopi_async::GenericClient;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

Expand Down
2 changes: 1 addition & 1 deletion src/attributes/repo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cornucopia_async::{GenericClient, Params};
use cornucopi_async::{GenericClient, Params};
use deadpool_postgres::Object;

use super::{
Expand Down
2 changes: 1 addition & 1 deletion src/auth/entities.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use async_trait::async_trait;
use cornucopia_async::{GenericClient, Params};
use cornucopi_async::{GenericClient, Params};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use url::Url;
Expand Down
2 changes: 1 addition & 1 deletion src/auth/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use axum::{
extract::{FromRequestParts, Query},
RequestPartsExt,
};
use cornucopia_async::GenericClient;
use cornucopi_async::GenericClient;
use http::request::Parts;
use itertools::Itertools;
use schemars::JsonSchema;
Expand Down
2 changes: 1 addition & 1 deletion src/auth/repo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cornucopia_async::{GenericClient, Params};
use cornucopi_async::{GenericClient, Params};
use deadpool_postgres::Object;
use futures::future::try_join_all;
use itertools::Itertools;
Expand Down
2 changes: 1 addition & 1 deletion src/categories/entities.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use async_trait::async_trait;
use cornucopia_async::GenericClient;
use cornucopi_async::GenericClient;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

Expand Down
2 changes: 1 addition & 1 deletion src/categories/repo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cornucopia_async::{GenericClient, Params};
use cornucopi_async::{GenericClient, Params};

use super::{Category, CreateCategory, UpdateCategory};
use crate::auth::User;
Expand Down
2 changes: 1 addition & 1 deletion src/collections/entities.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use async_trait::async_trait;
use cornucopia_async::GenericClient;
use cornucopi_async::GenericClient;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use url::Url;
Expand Down
2 changes: 1 addition & 1 deletion src/collections/filters.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use async_trait::async_trait;
use cornucopia_async::GenericClient;
use cornucopi_async::GenericClient;
use schemars::JsonSchema;
use serde::Deserialize;

Expand Down
2 changes: 1 addition & 1 deletion src/collections/repo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cornucopia_async::{GenericClient, Params};
use cornucopi_async::{GenericClient, Params};
use deadpool_postgres::Object;
use futures::{future::try_join_all, try_join};
use itertools::Itertools;
Expand Down
2 changes: 1 addition & 1 deletion src/colors/entities.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use async_trait::async_trait;
use cornucopia_async::GenericClient;
use cornucopi_async::GenericClient;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

Expand Down
2 changes: 1 addition & 1 deletion src/colors/repo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cornucopia_async::{GenericClient, Params};
use cornucopi_async::{GenericClient, Params};

use crate::auth::User;
use crate::cornucopia::queries::color::{
Expand Down
Loading

0 comments on commit d96e5c3

Please sign in to comment.