Skip to content

Commit b281817

Browse files
committed
fix(dead code): NoPrimary key strong type was never implemented
1 parent 9c83eb1 commit b281817

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

‎canyon_core/src/query/parameters.rs‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,6 @@ impl<'a> QueryParameterValue<'a> for &'a dyn QueryParameter {
3333
}
3434
}
3535

36-
// Define a zero-sized type to represent the absence of a primary key
37-
// #[derive(Debug, Clone, Copy)]
38-
// pub struct NoPrimaryKey;
39-
//
40-
// // Implement the QueryParameter trait for the zero-sized type
41-
// impl QueryParameter for NoPrimaryKey {
42-
// fn as_any(&'a self) -> &'a dyn Any {
43-
// todo!()
44-
// }
45-
//
46-
// fn as_postgres_param(&self) -> &(dyn ToSql + Sync) {
47-
// todo!()
48-
// }
49-
//
50-
// fn as_sqlserver_param(&self) -> ColumnData<'_> {
51-
// todo!()
52-
// }
53-
//
54-
// fn as_mysql_param(&self) -> &dyn ToValue {
55-
// todo!()
56-
// }
57-
// }
58-
//
59-
6036
/// Defines a trait for represent type bounds against the allowed
6137
/// data types supported by Canyon to be used as query parameters.
6238
pub trait QueryParameter: Debug + Send + Sync {

0 commit comments

Comments
 (0)