Skip to content

Instantly share code, notes, and snippets.

@jaredh159
Created July 2, 2025 17:57
Show Gist options
  • Save jaredh159/56362ef458c7793cf6793aa215ee1dd3 to your computer and use it in GitHub Desktop.
Save jaredh159/56362ef458c7793cf6793aa215ee1dd3 to your computer and use it in GitHub Desktop.
Insert Narrow Path Quotes
INSERT INTO "public"."np_quotes"(
"id",
"lang",
"is_friend",
"author_name",
"quote",
"friend_id",
"document_id",
"created_at",
"updated_at"
)
VALUES
(
E'<fresh-uuid>',
E'en',
TRUE, -- `is_friend`
NULL, -- `author_name`, leave blank if is_friend ks true
-- 👍 only SINGLE \n to separate paragraphs, if you use two it creates an error
E'YOUR QUOTE HERE',
E'<friend-uuid>', -- `friend_id`
E'<document-uuid>', -- `document_id`
NOW(),
NOW()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment