-
Notifications
You must be signed in to change notification settings - Fork 185
Smart schema re-parse #117
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
Conversation
`run_schema_suites` `run_schema_suites_static` `run_cur_schema_suites` `run_cur_schema_suites_static`
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.
Code looks good to me. Tested it from your branch and it does pick up on test package changes.
--end if; | ||
config_schema(a_schema_name); | ||
if not g_schema_suites.exists(a_schema_name) | ||
or g_schema_suites(a_schema_name).changed_at<nvl(get_schema_max_ddl(a_schema_name), date'2999-12-31') then |
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.
I would put the NVL into the get_schema_max_ddl
.
@@ -1,14 +1,26 @@ | |||
create or replace package body ut_suite_manager is | |||
|
|||
type tt_schema_suits is table of ut_test_suite index by varchar2(4000 char); |
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.
typo in type name here and in line 5
|
||
procedure run_cur_schema_suites(a_reporter in out nocopy ut_reporter, a_force_parse_again boolean default false); | ||
|
||
procedure run_cur_schema_suites_static(a_reporter in ut_reporter, a_force_parse_again boolean default false); | ||
|
||
procedure run(a_path in varchar2, a_reporter in ut_reporter); | ||
-- to be implemented |
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.
I would enable this run procedure anyway (even if it only runs for one element of array at the moment).
This way we have a complete API and can start implementing on top of it.
Internal implementation can change for run( list )
later. But if we're OK with the entry point signature, it should be enabled I think.
Issue #114 in a simplified form.
Now schema cache becomes invalidated when the last_ddl_time of any package in the schema change
Also corrected examples to eliminate calls to deprecated procedures:
run_schema_suites
run_schema_suites_static
run_cur_schema_suites
run_cur_schema_suites_static