Skip to content

Commit 41428ce

Browse files
authored
Merge pull request #4 from askdkc/add-fix
SQLとスクリーンショットを見やすい形に修正
2 parents fd3f6a1 + 92cf94a commit 41428ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_posts/2023-08-22-Supabase-pgroonga.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ PGroongaのオフィシャルドキュメントのハウツー内に[「PostgRES
3535

3636
<img width="1418" alt="table-creation" src="https://github.com/askdkc/askdkc.github.io/assets/7894265/ae9ab209-0eee-4817-805d-942c88b5df24">
3737

38+
#### SQLの中身
39+
3840
```sql
3941
CREATE TABLE memos (
4042
id integer,
@@ -53,6 +55,8 @@ INSERT INTO memos VALUES (4, 'groongaコマンドがあります。','今日は
5355

5456
<img width="1418" alt="create-indexes" src="https://github.com/askdkc/askdkc.github.io/assets/7894265/44377810-dc0a-4407-b659-5357f8e61510">
5557

58+
#### SQLの中身
59+
5660
```sql
5761
CREATE INDEX pgroonga_title_search_index ON memos USING pgroonga (title)
5862
WITH (
@@ -88,6 +92,8 @@ CREATE INDEX pgroonga_content_search_index ON memos USING pgroonga (content)
8892

8993
<img width="1418" alt="create-function" src="https://github.com/askdkc/askdkc.github.io/assets/7894265/db6bfeca-b581-45ee-aefc-930b29d5bec5">
9094

95+
#### SQLの中身
96+
9197
```sql
9298
-- Title検索用
9399
CREATE FUNCTION find_title(keywords text) RETURNS SETOF memos AS $$
@@ -111,6 +117,8 @@ $$ LANGUAGE plpgsql;
111117

112118
<img width="1418" alt="create-policy" src="https://github.com/askdkc/askdkc.github.io/assets/7894265/89403b68-a349-47a6-b86f-a24b75f2e706">
113119

120+
#### SQLの中身
121+
114122
```sql
115123
-- 1. Enable RLS
116124
alter table memos

0 commit comments

Comments
 (0)