Debian Codegraph @

src/statement.rs

raw symbols SCIP
1 use superrust-analyzer cargo sqlx-mysql 0.8.3 crate/::MySqlColumnrust-analyzer cargo sqlx-mysql 0.8.3 column/MySqlColumn#;
2 use craterust-analyzer cargo sqlx-mysql 0.8.3 crate/::columnrust-analyzer cargo sqlx-mysql 0.8.3 column/::ColumnIndexrust-analyzer cargo sqlx-core 0.8.3 column/ColumnIndex#;
3 use craterust-analyzer cargo sqlx-mysql 0.8.3 crate/::errorrust-analyzer cargo sqlx-mysql 0.8.3 error/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#;
4 use craterust-analyzer cargo sqlx-mysql 0.8.3 crate/::extrust-analyzer cargo sqlx-core 0.8.3 ext/::ustrrust-analyzer cargo sqlx-core 0.8.3 ext/ustr/::UStrrust-analyzer cargo sqlx-core 0.8.3 ext/ustr/UStr#;
5 use craterust-analyzer cargo sqlx-mysql 0.8.3 crate/::HashMaprust-analyzer cargo hashbrown 0.15.5 map/HashMap#;
6 use craterust-analyzer cargo sqlx-mysql 0.8.3 crate/::{MySqlrust-analyzer cargo sqlx-mysql 0.8.3 database/MySql#, MySqlArgumentsrust-analyzer cargo sqlx-mysql 0.8.3 arguments/MySqlArguments#, MySqlTypeInforust-analyzer cargo sqlx-mysql 0.8.3 type_info/MySqlTypeInfo#};
7 use eitherrust-analyzer cargo either 1.18.0 crate/::Eitherrust-analyzer cargo either 1.18.0 Either#;
8 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::borrowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/::Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#;
9 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::syncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std sync/::Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#;
10
11 pub(craterust-analyzer cargo sqlx-mysql 0.8.3 crate/) use sqlx_corerust-analyzer cargo sqlx-core 0.8.3 crate/::statementrust-analyzer cargo sqlx-core 0.8.3 statement/::*;
12
13 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)]
14 pub struct MySqlStatementrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#<'q> {
15 pub(craterust-analyzer cargo sqlx-mysql 0.8.3 crate/) sqlrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#sql.: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'q, str>,
16 pub(craterust-analyzer cargo sqlx-mysql 0.8.3 crate/) metadatarust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#metadata.: MySqlStatementMetadatarust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatementMetadata#,
17 }
18
19 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)]
20 pub(craterust-analyzer cargo sqlx-mysql 0.8.3 crate/) struct MySqlStatementMetadatarust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatementMetadata# {
21 pub(craterust-analyzer cargo sqlx-mysql 0.8.3 crate/) columnsrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatementMetadata#columns.: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<MySqlColumnrust-analyzer cargo sqlx-mysql 0.8.3 column/MySqlColumn#>>,
22 pub(craterust-analyzer cargo sqlx-mysql 0.8.3 crate/) column_namesrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatementMetadata#column_names.: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<HashMaprust-analyzer cargo hashbrown 0.15.5 map/HashMap#<UStrrust-analyzer cargo sqlx-core 0.8.3 ext/ustr/UStr#, usize>>,
23 pub(craterust-analyzer cargo sqlx-mysql 0.8.3 crate/) parametersrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatementMetadata#parameters.: usize,
24 }
25
26 impl<'q> Statementrust-analyzer cargo sqlx-core 0.8.3 statement/Statement#<'q> for MySqlStatementrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#<'q> {
27 type Databaserust-analyzer cargo sqlx-mysql 0.8.3 statement/impl#[`MySqlStatement<'q>`][`Statement<'q>`]Database# = MySqlrust-analyzer cargo sqlx-mysql 0.8.3 database/MySql#;
28
29 fn to_ownedrust-analyzer cargo sqlx-mysql 0.8.3 statement/impl#[`MySqlStatement<'q>`][`Statement<'q>`]to_owned().(&self) -> MySqlStatementrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#<'static> {
30 MySqlStatementrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#::<'static> {
31 sqlrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#sql.: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Owned#(self.sqlrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#sql..clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/impl#[`Cow<'_, B>`][Clone]clone().().into_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/impl#[`Cow<'_, B>`]into_owned().()),
32 metadatarust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#metadata.: self.metadatarust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#metadata..clonerust-analyzer cargo sqlx-mysql 0.8.3 statement/impl#[MySqlStatementMetadata][Clone]clone().(),
33 }
34 }
35
36 fn sqlrust-analyzer cargo sqlx-mysql 0.8.3 statement/impl#[`MySqlStatement<'q>`][`Statement<'q>`]sql().(&self) -> &str {
37 &self.sqlrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#sql.
38 }
39
40 fn parametersrust-analyzer cargo sqlx-mysql 0.8.3 statement/impl#[`MySqlStatement<'q>`][`Statement<'q>`]parameters().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Eitherrust-analyzer cargo either 1.18.0 Either#<&[MySqlTypeInforust-analyzer cargo sqlx-mysql 0.8.3 type_info/MySqlTypeInfo#], usize>> {
41 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(Eitherrust-analyzer cargo either 1.18.0 Either#::Rightrust-analyzer cargo either 1.18.0 Either#Right#(self.metadatarust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#metadata..parametersrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatementMetadata#parameters.))
42 }
43
44 fn columnsrust-analyzer cargo sqlx-mysql 0.8.3 statement/impl#[`MySqlStatement<'q>`][`Statement<'q>`]columns().(&self) -> &[MySqlColumnrust-analyzer cargo sqlx-mysql 0.8.3 column/MySqlColumn#] {
45 &self.metadatarust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#metadata..columnsrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatementMetadata#columns.
46 }
47
48 impl_statement_queryrust-analyzer cargo sqlx-core 0.8.3 statement/impl_statement_query!!(MySqlArgumentsrust-analyzer cargo sqlx-mysql 0.8.3 arguments/MySqlArguments#);
49 }
50
51 impl ColumnIndexrust-analyzer cargo sqlx-core 0.8.3 column/ColumnIndex#<MySqlStatementrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#<'_>> for &'_ str {
52 fn indexrust-analyzer cargo sqlx-mysql 0.8.3 statement/impl#[`&str`][`ColumnIndex<MySqlStatement<'_>>`]index().(&self, statement: &MySqlStatementrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#<'_>) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<usize, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> {
53 statement
54 .metadatarust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatement#metadata.
55 .column_namesrust-analyzer cargo sqlx-mysql 0.8.3 statement/MySqlStatementMetadata#column_names.
56 .getrust-analyzer cargo hashbrown 0.15.5 map/impl#[`HashMap<K, V, S, A>`]get().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self)
57 .ok_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]ok_or_else().(|| Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::ColumnNotFoundrust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnNotFound#((*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()))
58 .copiedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<&T, E>`]copied().()
59 }
60 }