Skip to content

Commit

Permalink
Update sql-editor.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi-raj-jain authored Jul 18, 2024
1 parent b1073d1 commit 149e024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/app/components/sql-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Results } from "./results";

export const SqlEditor = () => {
const [query, setQuery] = useState(
"CREATE TABLE playing_with_neon(id SERIAL PRIMARY KEY, name TEXT NOT NULL, value REAL);\nINSERT INTO playing_with_neon(name, value)\nSELECT LEFT(md5(i::TEXT), 10), random() FROM generate_series(1, 10) s(i);\nSELECT * FROM playing_with_neon;",
"CREATE TABLE IF NOT EXISTS playing_with_neon(id SERIAL PRIMARY KEY, name TEXT NOT NULL, value REAL);\nINSERT INTO playing_with_neon(name, value)\nSELECT LEFT(md5(i::TEXT), 10), random() FROM generate_series(1, 10) s(i);\nSELECT * FROM playing_with_neon;",
);
const onChange = useCallback((val: string) => {
setQuery(val);
Expand Down

0 comments on commit 149e024

Please sign in to comment.