-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] sketch AWS Aurora backend #97
base: main
Are you sure you want to change the base?
Conversation
schemas = schemas or ["public"] | ||
|
||
query = f""" | ||
SELECT {tipg_schema}.tipg_catalog( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use tipg_catalog
from a custom schema.
false | ||
); | ||
""" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost like tipg.database.connection_factory but without SQL registering to the pg_temp schema
tipg/backends/aurora/database.py
Outdated
|
||
async with app.state.pool.acquire() as conn: | ||
rows = await conn.fetch_b(query, schema=tipg_schema) | ||
assert rows, f"Couldn't file `tipg_catalog` in {tipg_schema}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tipg_catalog
function exists in the schema
This PR should't be merged and the code produced here might be forwarded to documentation.
This is an example on how to create a tipg backend with functions written to a
tipg_schema
instead ofpg_temp
.This code is not tested!