mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 14:02:55 +00:00
Add commit
This commit is contained in:
@@ -474,6 +474,7 @@ class NeonProject:
|
||||
f"INSERT INTO sanity_check (name, value) VALUES "
|
||||
f"('snapsot_name', '{snapshot_name}') ON CONFLICT (name) DO UPDATE SET value = EXCLUDED.value"
|
||||
)
|
||||
conn.commit()
|
||||
snapshot = NeonSnapshot(
|
||||
self,
|
||||
self.neon_api.create_snapshot(
|
||||
@@ -489,6 +490,7 @@ class NeonProject:
|
||||
cur.execute("SELECT * FROM sanity_check WHERE name = 'snapsot_name'")
|
||||
log.info("sanity: %s", cur.fetchone())
|
||||
cur.execute("UPDATE sanity_check SET value = 'tainted' || value")
|
||||
conn.commit()
|
||||
return snapshot
|
||||
|
||||
def delete_snapshot(self, snapshot_id: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user