🌐 AI搜索 & 代理 主页
Skip to content

Commit a43416b

Browse files
author
Nik Samokhvalov
committed
docs(cli): clarify role SQL template
- Add example ROLE_STMT expansions to cli/sql/01.role.sql
1 parent ce02f87 commit a43416b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cli/sql/01.role.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
-- Role creation / password update (template-filled by cli/lib/init.ts)
2+
--
3+
-- Example expansions (for readability/review):
4+
-- create user "postgres_ai_mon" with password '...';
5+
-- alter user "postgres_ai_mon" with password '...';
6+
-- do $$ begin
7+
-- if not exists (select 1 from pg_catalog.pg_roles where rolname = 'postgres_ai_mon') then
8+
-- create user "postgres_ai_mon" with password '...';
9+
-- else
10+
-- alter user "postgres_ai_mon" with password '...';
11+
-- end if;
12+
-- end $$;
213
{{ROLE_STMT}}
314

415

0 commit comments

Comments
 (0)