This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# IDE Session starter - you should save this script as ~/bin/session, make it | |
# executable with chmod +x ~/bin/session, and then make a symlink to it for | |
# every application you want to start. | |
# E.g. ln -s session ~/bin/members creates a "members" symlink, and when you'll issue | |
# "members" on the command line this script will: | |
# Check if a tmux session named "members" exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE users (id serial PRIMARY KEY NOT NULL, username text NOT NULL); | |
INSERT INTO users (username) VALUES ('admin'); | |
INSERT INTO users (username) VALUES ('pat'); | |
CREATE RULE no_delete_admin AS ON DELETE TO users WHERE username='admin' DO INSTEAD NOTHING; | |
SELECT * FROM users; | |
DELETE FROM users; | |
SELECT * FROM users; |
OlderNewer