How to translate query lookup string into a SQLModel object? #1476
              
                Unanswered
              
          
                  
                    
                      perfecto25
                    
                  
                
                  asked this question in
                Questions
              
            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.
-
First Check
Commit to Help
Example Code
Description
Hello, I have a select field to search for DB records based on some fields, table is called Xconnect,
how do I translate a lookup string into a SQLModel object w/o using constant If/Then blocks?
is there a better way to do this than explicit if/then statements?
for example if someone searches Xconnect table where client_type == "abc"
how can I translate this into a SQL model query w/o using explicit if/then mapping, ie
Operating System
Linux
Operating System Details
Ubuntu 20.04
SQLModel Version
0.0.6
Python Version
3.8
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions