-
Notifications
You must be signed in to change notification settings - Fork 33
Labels
api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.Issues related to the googleapis/python-spanner-sqlalchemy API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
The dialect currently doesn't support multi-row / bulk inserts, although Spanner itself does.
engine = sa.create_engine(
"spanner+spanner:///...",
)
with engine.begin() as conn:
conn.execute(
sa.insert(Person)
.values([{"name": "jdoe"}, {"name": "jmoe"}])
.returning(Person.id)
)
session.commit()
sqlalchemy.exc.CompileError: The 'spanner+spanner' dialect with current database version settings does not support in-place multirow inserts.
Metadata
Metadata
Assignees
Labels
api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.Issues related to the googleapis/python-spanner-sqlalchemy API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.