Skip to content

Cannot use AG with psycopg2? #2

@vnnw

Description

@vnnw

I tried the following code and got an InternalError error:
"InternalError: current transaction is aborted, commands ignored until end of transaction block"

import psycopg2
from psycopg2.extras import Json
import agtype
conn = psycopg2.connect("dbname=ag user=ag")
cur = conn.cursor()
cur.execute("create graph p")

What should I do to manipulate AG with python?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions