Skip to content

Commit faf3793

Browse files
intermediary
1 parent 46c2596 commit faf3793

File tree

3 files changed

+9
-42
lines changed

3 files changed

+9
-42
lines changed

postgrestools.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// YOU CAN COMMENT ME OUT :)
1818
"db": {
1919
"host": "127.0.0.1",
20-
"port": 5432,
20+
"port": 54322,
2121
"username": "postgres",
2222
"password": "postgres",
2323
"database": "postgres",

test.sql

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1 @@
1-
create table
2-
unknown_users (id serial primary key, address text, email text);
3-
4-
drop table unknown_users;
5-
6-
select
7-
*
8-
from
9-
unknown_users;
10-
11-
sel 1;
12-
13-
14-
15-
create function test_organisation_id ()
16-
returns setof text
17-
language plpgsql
18-
security invoker
19-
as $$
20-
declre
21-
v_organisation_id uuid;
22-
begin
23-
return next is(private.organisation_id(), v_organisation_id, 'should return organisation_id of token');
24-
end
25-
$$;
26-
27-
28-
create function f1()
29-
returns void as $$
30-
declare b constant int;
31-
begin
32-
call p1(10, b);
33-
end;
34-
$$ language plpgsql;
1+
select email REPLACED_TOKE pff

todo.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
#### Snapshot review
3-
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__completes_in_join_on_clause.snap
4-
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__completes_quoted_columns_with_aliases.snap
5-
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__completes_quoted_columns.snap
6-
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__does_not_complete_cols_in_join_clauses.snap
7-
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__filters_out_by_aliases_in_join_on.snap
8-
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__filters_out_by_aliases_in_select.snap
9-
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__handles_nested_queries.snap
3+
- [x] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__completes_in_join_on_clause.snap
4+
- [x] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__completes_quoted_columns_with_aliases.snap
5+
- [x] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__completes_quoted_columns.snap
6+
- [x] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__does_not_complete_cols_in_join_clauses.snap
7+
- [x] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__filters_out_by_aliases_in_join_on.snap
8+
- [x] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__filters_out_by_aliases_in_select.snap
9+
- [x] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__handles_nested_queries.snap
1010
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__ignores_cols_in_from_clause.snap
1111
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__prefers_columns_of_mentioned_tables.snap
1212
- [ ] crates/pgls_completions/src/snapshots/pgls_completions__test_helper__prefers_not_mentioned_columns.snap

0 commit comments

Comments
 (0)