init
This commit is contained in:
23
README.md
Normal file
23
README.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Postgres
|
||||
- url
|
||||
- Format: `postgres://user@host:port/dbname` or `postgres:///dbname?host=/var/run/postgresql`.
|
||||
- Default: `postgres://nxcaldav@localhost:5432/nxcaldav?sslmode=disable`
|
||||
|
||||
# Users
|
||||
|
||||
- name: required
|
||||
- password: cleartext or bcrypt hash
|
||||
- password_cmd: shell command
|
||||
|
||||
# SQL
|
||||
## delte user
|
||||
```sql
|
||||
DELETE FROM users WHERE name = 'bob';
|
||||
```
|
||||
|
||||
## delete calendar
|
||||
```sql
|
||||
DELETE FROM calendars WHERE name = 'bob_calendar' AND owner_id = (SELECT id FROM users WHERE name = 'bob');
|
||||
/* or */
|
||||
DELETE FROM calendars WHERE path = '/bob/calendars/bob_calendar/';
|
||||
```
|
||||
Reference in New Issue
Block a user