Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 43 additions & 28 deletions commands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ commands/
│ ├── SELECT.md # Query data
│ ├── INSERT.md # Add new records
│ ├── UPDATE.md # Modify existing records
│ └── DELETE.md # Remove records (Coming Soon)
│ └── DELETE.md # Remove records
├── DCL/ # Data Control Language
│ ├── GRANT.md # Give permissions (Coming Soon)
│ └── REVOKE.md # Remove permissions (Coming Soon)
│ ├── GRANT.md # Give permissions
│ └── REVOKE.md # Remove permissions
└── TCL/ # Transaction Control Language
├── COMMIT.md # Save changes (Coming Soon)
├── ROLLBACK.md # Undo changes (Coming Soon)
└── SAVEPOINT.md # Set transaction savepoint (Coming Soon)
├── COMMIT.md # Save changes
├── ROLLBACK.md # Undo changes
└── SAVEPOINT.md # Set transaction savepoint
```

---
Expand Down Expand Up @@ -55,45 +55,57 @@ DML commands are used to manipulate data within database objects.

### ✅ Available Commands

| Command | Purpose | Status | Description |
| --------------------------- | -------------- | -------------- | ------------------------------------------------------ |
| **[SELECT](DML/SELECT.md)** | Query Data | ✅ Complete | Retrieve data with filtering, sorting, grouping, joins |
| **[INSERT](DML/INSERT.md)** | Add Records | ✅ Complete | Add new rows with various data sources and methods |
| **[UPDATE](DML/UPDATE.md)** | Modify Records | ✅ Complete | Change existing data with conditions and joins |
| **DELETE** | Remove Records | 🔄 Coming Soon | Delete specific rows based on conditions |
| Command | Purpose | Status | Description |
| --------------------------- | -------------- | ----------- | ------------------------------------------------------ |
| **[SELECT](DML/SELECT.md)** | Query Data | ✅ Complete | Retrieve data with filtering, sorting, grouping, joins |
| **[INSERT](DML/INSERT.md)** | Add Records | ✅ Complete | Add new rows with various data sources and methods |
| **[UPDATE](DML/UPDATE.md)** | Modify Records | ✅ Complete | Change existing data with conditions and joins |
| **[DELETE](DML/DELETE.md)** | Remove Records | ✅ Complete | Delete specific rows based on conditions |

### 🚀 Key Features Covered

- **SELECT**: Complete query syntax, joins, subqueries, window functions, CTEs, performance optimization
- **INSERT**: Single/multiple row insertion, bulk operations, conflict resolution, database-specific features
- **UPDATE**: Conditional updates, joins, subqueries, CASE statements, audit trails
- **DELETE**: Selective deletion, JOINs with DELETE, safety practices, vs TRUNCATE/DROP comparison

---

## 🔐 DCL Commands (Data Control Language)

DCL commands control access permissions to database objects.

### 🔄 Planned Commands
### ✅ Available Commands

| Command | Purpose | Status | Description |
| --------------------------- | ------------------ | ----------- | ------------------------------------------------ |
| **[GRANT](DCL/GRANT.md)** | Give Permissions | ✅ Complete | Grant database permissions to users and roles |
| **[REVOKE](DCL/REVOKE.md)** | Remove Permissions | ✅ Complete | Remove database permissions from users and roles |

### 🚀 Key Features Covered

| Command | Purpose | Status | Description |
| ---------- | ------------------ | -------------- | ------------------------------------------------ |
| **GRANT** | Give Permissions | 🔄 Coming Soon | Grant database permissions to users and roles |
| **REVOKE** | Remove Permissions | 🔄 Coming Soon | Remove database permissions from users and roles |
- **GRANT**: Object-level, database-level, schema-level permissions, role-based access, security best practices
- **REVOKE**: Permission removal, CASCADE vs RESTRICT, cleanup procedures, security maintenance

---

## 🔄 TCL Commands (Transaction Control Language)

TCL commands manage database transactions and data consistency.

### 🔄 Planned Commands
### ✅ Available Commands

| Command | Purpose | Status | Description |
| --------------------------------- | -------------- | ----------- | -------------------------------------------------- |
| **[COMMIT](TCL/COMMIT.md)** | Save Changes | ✅ Complete | Make transaction changes permanent |
| **[ROLLBACK](TCL/ROLLBACK.md)** | Undo Changes | ✅ Complete | Revert transaction changes |
| **[SAVEPOINT](TCL/SAVEPOINT.md)** | Set Checkpoint | ✅ Complete | Create transaction savepoints for partial rollback |

### 🚀 Key Features Covered

| Command | Purpose | Status | Description |
| ------------- | -------------- | -------------- | -------------------------------------------------- |
| **COMMIT** | Save Changes | 🔄 Coming Soon | Make transaction changes permanent |
| **ROLLBACK** | Undo Changes | 🔄 Coming Soon | Revert transaction changes |
| **SAVEPOINT** | Set Checkpoint | 🔄 Coming Soon | Create transaction savepoints for partial rollback |
- **COMMIT**: Transaction management, commit modes, error handling, performance optimization
- **ROLLBACK**: Error recovery, rollback scenarios, performance impact, recovery patterns
- **SAVEPOINT**: Partial rollback control, complex transaction management, nested operations

---

Expand Down Expand Up @@ -184,14 +196,17 @@ DELETE FROM TableName WHERE ...;
### Phase 2: Structure Management (Intermediate)

1. **[ALTER](DDL/ALTER.md)** - Modify table structures
2. **[TRUNCATE](DDL/TRUNCATE.md)** - Efficiently remove data
3. **[DROP](DDL/DROP.md)** - Safely remove objects
2. **[DELETE](DML/DELETE.md)** - Selective data removal and safety practices
3. **[TRUNCATE](DDL/TRUNCATE.md)** - Efficiently remove data
4. **[DROP](DDL/DROP.md)** - Safely remove objects

### Phase 3: Advanced Operations (Advanced)

1. **DELETE** - Selective data removal (Coming Soon)
2. **GRANT/REVOKE** - Security management (Coming Soon)
3. **Transaction Control** - Data consistency (Coming Soon)
1. **[GRANT](DCL/GRANT.md)** - Security and permission management
2. **[REVOKE](DCL/REVOKE.md)** - Permission removal and cleanup
3. **[COMMIT](TCL/COMMIT.md)** - Transaction commitment and error handling
4. **[ROLLBACK](TCL/ROLLBACK.md)** - Transaction rollback and recovery
5. **[SAVEPOINT](TCL/SAVEPOINT.md)** - Complex transaction control

---

Expand Down