mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
make AuthPassthrough generic
This commit is contained in:
@@ -12,7 +12,7 @@ pub struct AuthPassthrough {
|
|||||||
|
|
||||||
impl AuthPassthrough {
|
impl AuthPassthrough {
|
||||||
/// Initializes an AuthPassthrough.
|
/// Initializes an AuthPassthrough.
|
||||||
pub fn new(query: &str, user: &str, password: &str) -> Self {
|
pub fn new<S: ToString>(query: S, user: S, password: S) -> Self {
|
||||||
AuthPassthrough {
|
AuthPassthrough {
|
||||||
password: password.to_string(),
|
password: password.to_string(),
|
||||||
query: query.to_string(),
|
query: query.to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user