Should AnyDriver exposed? #3979
              
                Unanswered
              
          
                  
                    
                      azamaulanaaa
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
From what I've read, we have access to
sqlx::sqlite::any::DRIVER(and other databases) andsqlx::any::install_drivers. However, the underlying typesqlx_core::any::driver::AnyDriveris not public, so it’s impossible to manipulate it using slices or vectors.In my use case, I need to connect to the database as AnyPool, but I also need to perform actions based on the driver being used. With AnyConnection, this is achievable using
AnyConnection::backend_name.I think (though I could be wrong) that exposing AnyDriver would allow users to create their own custom drivers.
Beta Was this translation helpful? Give feedback.
All reactions