mirror of https://github.com/locustio/locust.git
updating to psycopg3
This commit is contained in:
parent
548eb603ca
commit
d919018f95
|
@ -8,7 +8,7 @@ from locust import TaskSet, User, between, events, task
|
|||
|
||||
def create_conn(conn_string):
|
||||
print("Connect and Query PostgreSQL")
|
||||
conn = psycopg2.connect(conn_string)
|
||||
conn = psycopg.connect(conn_string)
|
||||
return conn
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue