SQL Queries for tests
SQL Queries for tests
Delete test tenants schemes
Somehow during deletion of tenants their schemas are deleted.
Use this SQL query to create a query to find and drop all schemas.
We assume that your pattern for test tenant is testtenant{digits}
select 'drop schema if exists ' || string_agg(schema_name, ', ') || ' cascade'
from (select schema_name from information_schema.schemata where schema_name similar to 'testtenant\d%')
It will create another sql query that you need to use to actually drop schemas. It will drop all items within them.
, multiple selections available,
Related content
Bulk delete using CQL query
Bulk delete using CQL query
More like this
Dojo Eureka Karate Tests Hand-off Plan
Dojo Eureka Karate Tests Hand-off Plan
Read with this
Common Utility Functions in Eureka Karate
Common Utility Functions in Eureka Karate
More like this
Quesnelia (R1 2024): Holdings migration
Quesnelia (R1 2024): Holdings migration
More like this
Script to update tenant mapping rules to include mapping for Canceled LCCN, Date type, Subject Source and Subject Type
Script to update tenant mapping rules to include mapping for Canceled LCCN, Date type, Subject Source and Subject Type
More like this
Script to identify invalid associations between Match profile linked to Modify Action profile
Script to identify invalid associations between Match profile linked to Modify Action profile
More like this