We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28ac22d commit cc8b272Copy full SHA for cc8b272
crates/query-engine/translation/src/translation/mutation/insert.rs
@@ -21,15 +21,15 @@ pub struct InsertMutation {
21
22
/// generate an insert mutation.
23
pub fn generate(
24
- collection_name: &String,
+ collection_name: &str,
25
table_info: &database::TableInfo,
26
) -> (String, InsertMutation) {
27
let name = format!("v1_insert_{collection_name}");
28
29
let description = format!("Insert into the {collection_name} table",);
30
31
let insert_mutation = InsertMutation {
32
- collection_name: collection_name.clone(),
+ collection_name: collection_name.to_string(),
33
description,
34
schema_name: ast::SchemaName(table_info.schema_name.clone()),
35
table_name: ast::TableName(table_info.table_name.clone()),
0 commit comments