Skip to content

[PoC] Create repo.rs example#23

Open
andreytkachenko wants to merge 1 commit intoMergeMinds:mainfrom
andreytkachenko:patch-1
Open

[PoC] Create repo.rs example#23
andreytkachenko wants to merge 1 commit intoMergeMinds:mainfrom
andreytkachenko:patch-1

Conversation

@andreytkachenko
Copy link
Copy Markdown

No description provided.

Comment thread examples/repo.rs
builder
.push(User::table_name())
.push(" WHERE ")
.push(key.as_ref())
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нельзя биндить имена колонок

Comment thread examples/repo.rs
type Error = sqlx::Error;
type Database = sqlx::Postgres;

async fn fetch_one<'a, V>(
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Избегайте конструкций c for<'r> ... типа for<'q> sqlx::Encode<'q, D>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant