2024-09-17T12:00:00
A schema containing users' uploads. Tables
uploaded here are persistent across TAP requests but will automatically
be garbage collected after \getConfig{ivoa}{userTableDays} days.
Users are most welcome to delete them manually before that time by
doing a DELETE request against the table URI.
virtual-observatories
catalogs
10
with base.getWritableAdminConn() as conn:
toDelete = conn.query("select user_name, table_name"
" from tap_user.tables"
" where expiry<=CURRENT_TIMESTAMP")
for userName, tableName in toDelete:
tap_uploads.dropUserUploadedTable(
conn, userName, tableName)
This table contains metadata for the tables
uploaded by users.
if queryMeta["user_pretend"]:
user = queryMeta.getAuthUser()
else:
user = "anonymous"
tap_uploads.createIndex(
user, inputTable.args["table_name"], inputTable.args["index_name"])