@housekit/orm 0.1.46 → 0.1.47
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 +13 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,14 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
> ⚠️ **Public Beta**: This package is currently in public beta. Feedback is highly appreciated as we polish the API for v1.0.
|
|
6
6
|
|
|
7
|
-
> [
|
|
8
|
-
> **Interactive Docs**: Use [RepoGrep](https://app.ami.dev/repogrep?repo=https://github.com/pablofdezr/housekit) to search and query the entire codebase and documentation for free (Updated instantly).
|
|
7
|
+
> 💡 **Interactive Docs**: Use [RepoGrep](https://app.ami.dev/repogrep?repo=https://github.com/pablofdezr/housekit) to search and query the entire codebase and documentation for free (Updated instantly).
|
|
9
8
|
|
|
10
|
-
> [
|
|
11
|
-
> **Ask ZRead**: Need deep insights? [Ask ZRead](https://zread.ai/pablofdezr/housekit) for AI-powered understanding of the codebase (Updated weekly).
|
|
9
|
+
> 💡 **Ask ZRead**: Need deep insights? [Ask ZRead](https://zread.ai/pablofdezr/housekit) for AI-powered understanding of the codebase (Updated weekly).
|
|
12
10
|
|
|
13
|
-
> [
|
|
14
|
-
> **Ask Devin AI**: Have questions about integrating HouseKit? [Ask the Wiki](https://deepwiki.com/pablofdezr/housekit) for AI-powered assistance (Updated weekly).
|
|
11
|
+
> 💡 **Ask Devin AI**: Have questions about integrating HouseKit? [Ask the Wiki](https://deepwiki.com/pablofdezr/housekit) for AI-powered assistance (Updated weekly).
|
|
15
12
|
|
|
16
13
|
HouseKit ORM is a modern database toolkit designed specifically for ClickHouse. It bridges the gap between ergonomic developer experiences and the extreme performance requirements of high-volume OLAP workloads.
|
|
17
14
|
|
|
@@ -100,6 +97,16 @@ id: t.uuid('id').primaryKey().default('generateUUIDv7()')
|
|
|
100
97
|
|
|
101
98
|
**Note:** Don't combine both - it's redundant. Choose one based on whether you need `.returning()` support.
|
|
102
99
|
|
|
100
|
+
**Custom IDs:** You can always provide your own ID when inserting - autoGenerate only kicks in when the field is `undefined`:
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
// Auto-generated UUID
|
|
104
|
+
await db.insert(users).values({ email: 'a@b.com' });
|
|
105
|
+
|
|
106
|
+
// Custom ID provided by user
|
|
107
|
+
await db.insert(users).values({ id: 'my-custom-uuid', email: 'a@b.com' });
|
|
108
|
+
```
|
|
109
|
+
|
|
103
110
|
### 2. Connect and Query
|
|
104
111
|
|
|
105
112
|
```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@housekit/orm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"description": "Type-safe ClickHouse ORM with modern DX and ClickHouse-specific optimizations. Features optimized JSONCompact streaming, full engine support, and advanced query capabilities.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|