@blinkdotnew/sdk 0.14.11 → 0.14.12
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 +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -208,7 +208,7 @@ The SDK now automatically converts between JavaScript camelCase and SQL snake_ca
|
|
|
208
208
|
**⚠️ Important: Always Use camelCase in Your Code**
|
|
209
209
|
- ✅ **Correct**: `{ userId: user.id, createdAt: new Date() }`
|
|
210
210
|
- ❌ **Wrong**: `{ user_id: user.id, created_at: new Date() }`
|
|
211
|
-
|
|
211
|
+
|
|
212
212
|
|
|
213
213
|
```typescript
|
|
214
214
|
// Create (ID auto-generated if not provided)
|
|
@@ -251,8 +251,7 @@ await blink.db.todos.createMany([
|
|
|
251
251
|
])
|
|
252
252
|
await blink.db.todos.upsertMany([...])
|
|
253
253
|
|
|
254
|
-
|
|
255
|
-
const result = await blink.db.sql('SELECT * FROM todos WHERE user_id = ?', [user.id])
|
|
254
|
+
|
|
256
255
|
```
|
|
257
256
|
|
|
258
257
|
### AI Operations
|
package/package.json
CHANGED