summaryrefslogtreecommitdiff
path: root/examples/standalone/async_postgres.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/standalone/async_postgres.py')
-rw-r--r--examples/standalone/async_postgres.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/standalone/async_postgres.py b/examples/standalone/async_postgres.py
index e9c519a..bd99873 100644
--- a/examples/standalone/async_postgres.py
+++ b/examples/standalone/async_postgres.py
@@ -16,7 +16,7 @@ from datetime import datetime
from sqlalchemy.ext.asyncio import create_async_engine
-from apscheduler.datastores.async_sqlalchemy import AsyncSQLAlchemyDataStore
+from apscheduler.datastores.sqlalchemy import SQLAlchemyDataStore
from apscheduler.schedulers.async_ import AsyncScheduler
from apscheduler.triggers.interval import IntervalTrigger
@@ -29,7 +29,7 @@ async def main():
engine = create_async_engine(
"postgresql+asyncpg://postgres:secret@localhost/testdb"
)
- data_store = AsyncSQLAlchemyDataStore(engine)
+ data_store = SQLAlchemyDataStore(engine)
async with AsyncScheduler(data_store) as scheduler:
await scheduler.add_schedule(tick, IntervalTrigger(seconds=1), id="tick")
await scheduler.run_until_stopped()