psycopg2 and SQL injection security

后端 未结 3 1666
青春惊慌失措
青春惊慌失措 2020-12-17 17:30

I am writing a class to be used as part of a much larger modeling algorithm. My part does spatial analysis to calculate distances from certain points to other points. Ther

3条回答
  •  自闭症患者
    2020-12-17 17:57

    You can use psycopg2.sql to compose dynamic queries. Unlike AsIs it will protect you from SQL injection.

提交回复
热议问题