Skip to content

Commit

Permalink
Merge pull request #84 from thedataquarry/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
sanders41 committed May 8, 2024
2 parents 1511197 + 27f9b12 commit a57cf6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ repos:
files: ^src/pyp3_mock_data/
entry: bash -c 'cd src/pyo3_mock_data && mypy -p pyp3_mock_data "$@"' --
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
rev: v0.4.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
13 changes: 0 additions & 13 deletions src/postgres_etl/rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
use dotenvy::dotenv;
use rand::{rngs::StdRng, Rng, SeedableRng};
use serde::Serialize;
use sqlx::{postgres::PgPoolOptions, PgPool};
use std::sync::Arc;

#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
struct Person {
id: i32,
name: String,
age: i16, // Postgres does not have unsigned integers
is_married: bool,
city: String,
state: String,
country: String,
}

async fn get_pool(pg_uri: &str) -> Result<Arc<PgPool>, sqlx::Error> {
let pool = Arc::new(
PgPoolOptions::new()
Expand Down

0 comments on commit a57cf6f

Please sign in to comment.