Files
neon/proxy/subzero/sql/include/test.sql
Ruslan Talpa d1445cf3eb subzero integration WIP4
queries generated by subzero reach database and execute succesfully
2025-06-24 15:33:51 +03:00

17 lines
410 B
SQL

CREATE SCHEMA IF NOT EXISTS test;
CREATE TABLE IF NOT EXISTS test.items (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL
);
INSERT INTO test.items (name) VALUES
('test item 1'),
('test item 2'),
('test item 3');
CREATE ROLE authenticated NOLOGIN;
GRANT authenticated TO authenticator;
GRANT USAGE ON SCHEMA test TO authenticated;
GRANT ALL ON ALL TABLES IN SCHEMA test TO authenticated;