Is as _ needed for templating string data, and x as "x: X" needed for returning data when using enum in PostgreSQL?
              
              #3483
            
            
              
                Unanswered
              
          
                  
                    
                      alissa-tung
                    
                  
                
                  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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to create some Rust enum to match the ones in PostgreSQL.
when using
query!macro, when returning data, withoutaswon't workand also for templating data
won't sqlx can figure out what type is by
type_name? Or I am doing something wrongThank you
according to the document of query! macro,
Seems the two ways disable compile time type checking?
#2149
#2588
Beta Was this translation helpful? Give feedback.
All reactions