mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			208 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			208 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import psycopg2
 | 
						|
import psycopg2.extras
 | 
						|
 | 
						|
conn = psycopg2.connect("dbname=test")
 | 
						|
curs = conn.cursor()
 | 
						|
curs.execute("SELECT true AS foo WHERE 'a' in %s", (("aa", "bb"),))
 | 
						|
print curs.fetchall()
 | 
						|
print curs.query
 | 
						|
 |