-
Notifications
You must be signed in to change notification settings - Fork 103
feat: provide additional search_path patterns for typechecking #484
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4e43e01
intermeidary
juleswritescode ead4101
so far
juleswritescode 8151d99
readied
juleswritescode c0e8430
Update crates/pgt_schema_cache/Cargo.toml
juleswritescode 4b6484a
Update crates/pgt_schema_cache/src/schema_cache.rs
juleswritescode 693f47c
adjusties
juleswritescode 343e1fc
ok
juleswritescode da29662
format
juleswritescode 2d42574
add a test like a grown up
juleswritescode 521cb15
Merge branch 'issue/#482' of https://github.com/supabase-community/po…
juleswritescode ccde6e7
Update postgrestools.jsonc
juleswritescode 3464003
move to typecheck
juleswritescode 7064fed
progress
juleswritescode c47436d
just readied
juleswritescode 4c8be33
remove unnecessary
juleswritescode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,21 @@ | ||
create table | ||
unknown_users (id serial primary key, address text, email text); | ||
|
||
drop table unknown_users; | ||
|
||
select | ||
* | ||
from | ||
unknown_users; | ||
|
||
sel 1; | ||
|
||
|
||
|
||
create function test_organisation_id () | ||
returns setof text | ||
language plpgsql | ||
security invoker | ||
as $$ | ||
declre | ||
v_organisation_id uuid; | ||
begin | ||
return next is(private.organisation_id(), v_organisation_id, 'should return organisation_id of token'); | ||
end | ||
$$; | ||
|
||
|
||
create function f1() | ||
returns void as $$ | ||
declare b constant int; | ||
begin | ||
call p1(10, b); | ||
-- create schema private; | ||
|
||
create table if not exists private.something ( | ||
id serial primary key, | ||
arr double precision[] | ||
); | ||
|
||
create or replace function private.head( | ||
arr double precision[] | ||
) returns double precision as $$ | ||
begin | ||
if cardinality(arr) = 0 then | ||
raise exception 'Empty array!'; | ||
else | ||
return arr[0]; | ||
end if; | ||
end; | ||
$$ language plpgsql; | ||
|
||
|
||
select head (arr) from private.something; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.