@dockstat/sqlite-wrapper 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ bun add @dockstat/sqlite-wrapper
|
|
|
16
16
|
|
|
17
17
|
## 10-second quickstart
|
|
18
18
|
|
|
19
|
-
```
|
|
19
|
+
```typescript
|
|
20
20
|
import { DB, column } from "@dockstat/sqlite-wrapper";
|
|
21
21
|
|
|
22
22
|
type User = {
|
|
@@ -57,10 +57,43 @@ const users = userTable
|
|
|
57
57
|
* 🛡️ Safety-first defaults — prevents accidental full-table updates/deletes
|
|
58
58
|
* 🚀 Designed for production workflows: WAL, pragmatic PRAGMAs, bulk ops, transactions
|
|
59
59
|
|
|
60
|
+
## Core Features
|
|
61
|
+
|
|
62
|
+
### Type Safety
|
|
63
|
+
|
|
64
|
+
* **Compile-time validation** of column names and data shapes
|
|
65
|
+
* **IntelliSense support** for all operations
|
|
66
|
+
* **Generic interfaces** that adapt to your data models
|
|
67
|
+
* **Type-safe column definitions** with comprehensive constraint support
|
|
68
|
+
|
|
69
|
+
### Safety-First Design
|
|
70
|
+
|
|
71
|
+
* **Mandatory WHERE conditions** for UPDATE and DELETE operations to prevent accidental data loss
|
|
72
|
+
* **Parameter binding** for all queries to prevent SQL injection
|
|
73
|
+
* **Prepared statements** used internally for optimal performance
|
|
74
|
+
* **Transaction support** with automatic rollback on errors
|
|
75
|
+
|
|
76
|
+
### Production Ready
|
|
77
|
+
|
|
78
|
+
* **WAL mode** support for concurrent read/write operations
|
|
79
|
+
* **Comprehensive PRAGMA management** for performance tuning
|
|
80
|
+
* **Connection pooling** considerations built-in
|
|
81
|
+
* **Bulk operation** support with transaction batching
|
|
82
|
+
* **Schema introspection** tools for migrations and debugging
|
|
83
|
+
|
|
84
|
+
### Complete SQLite Support
|
|
85
|
+
|
|
86
|
+
* **All SQLite data types** with proper TypeScript mappings
|
|
87
|
+
* **Generated columns** (both VIRTUAL and STORED)
|
|
88
|
+
* **Foreign key constraints** with cascade options
|
|
89
|
+
* **JSON columns** with validation and transformation
|
|
90
|
+
* **Full-text search** preparation
|
|
91
|
+
* **Custom functions** and extensions support
|
|
92
|
+
|
|
60
93
|
## Docs & examples
|
|
61
94
|
|
|
62
95
|
See full technical docs [here](https://outline.itsnik.de/s/9d88c471-373e-4ef2-a955-b1058eb7dc99/doc/dockstatsqlite-wrapper-Lxt4IphXI5).
|
|
63
96
|
|
|
64
97
|
## License
|
|
65
98
|
|
|
66
|
-
|
|
99
|
+
MPL-2.0 — maintained by Dockstat. Contributions welcome.
|