sequel-duckdb 0.2.1 → 0.3.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/sequel/duckdb/version.rb +1 -1
- metadata +3 -57
- data/.beads/.beads-credential-key +0 -1
- data/.beads/.gitignore +0 -66
- data/.beads/README.md +0 -85
- data/.beads/config.yaml +0 -56
- data/.beads/hooks/post-checkout +0 -24
- data/.beads/hooks/post-merge +0 -24
- data/.beads/hooks/pre-commit +0 -24
- data/.beads/hooks/pre-push +0 -24
- data/.beads/hooks/prepare-commit-msg +0 -24
- data/.beads/metadata.json +0 -7
- data/.kiro/specs/advanced-sql-features-implementation/design.md +0 -26
- data/.kiro/specs/advanced-sql-features-implementation/requirements.md +0 -43
- data/.kiro/specs/advanced-sql-features-implementation/tasks.md +0 -28
- data/.kiro/specs/duckdb-sql-syntax-compatibility/design.md +0 -272
- data/.kiro/specs/duckdb-sql-syntax-compatibility/requirements.md +0 -84
- data/.kiro/specs/duckdb-sql-syntax-compatibility/tasks.md +0 -107
- data/.kiro/specs/edge-cases-and-validation-fixes/requirements.md +0 -32
- data/.kiro/specs/integration-test-database-setup/design.md +0 -0
- data/.kiro/specs/integration-test-database-setup/requirements.md +0 -117
- data/.kiro/specs/sequel-duckdb-adapter/design.md +0 -549
- data/.kiro/specs/sequel-duckdb-adapter/requirements.md +0 -202
- data/.kiro/specs/sequel-duckdb-adapter/tasks.md +0 -292
- data/.kiro/specs/sql-expression-handling-fix/design.md +0 -331
- data/.kiro/specs/sql-expression-handling-fix/requirements.md +0 -86
- data/.kiro/specs/sql-expression-handling-fix/tasks.md +0 -25
- data/.kiro/specs/test-infrastructure-improvements/requirements.md +0 -106
- data/.kiro/steering/product.md +0 -26
- data/.kiro/steering/structure.md +0 -88
- data/.kiro/steering/tech.md +0 -137
- data/.kiro/steering/testing.md +0 -213
- data/.mdformat.toml +0 -2
- data/.rubocop.yml +0 -161
- data/.rubocop_todo.yml +0 -323
- data/.yardopts +0 -8
- data/AGENTS.md +0 -180
- data/API_DOCUMENTATION.md +0 -943
- data/FINAL_STATUS.md +0 -99
- data/MIGRATION_EXAMPLES.md +0 -740
- data/PERFORMANCE_OPTIMIZATIONS.md +0 -726
- data/REFACTORING_SUMMARY.md +0 -264
- data/Rakefile +0 -43
- data/TASK_10.2_IMPLEMENTATION_SUMMARY.md +0 -182
- data/docs/DUCKDB_SQL_PATTERNS.md +0 -448
- data/docs/TASK_12_VERIFICATION_SUMMARY.md +0 -135
- data/justfile +0 -50
- data/plans/date_arithmetic.md +0 -420
- data/plans/engineering/Sequel.md +0 -471
- data/plans/engineering/duckdb.md +0 -712
- data/plans/engineering/sqlite.md +0 -453
- data/plans/mock_connection_bug.md +0 -333
- data/plans/mock_without_driver_gem.md +0 -371
- data/plans/over_engineering_analysis.md +0 -122
- data/plans/schema_management.md +0 -383
- data/sig/sequel/duckdb.rbs +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e465f675eb8331927ee6bef47ac89ddf5c1b740ebe901874b57860b14d5d5d4
|
|
4
|
+
data.tar.gz: 62ca18b7870e68e85e3f557a7ff8697e59f0023659005227e257877b51e3e5b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2882f239ed7c4dd659c63352571d740338659a3b18a4df14bded7ecb240961cbabd89f2245eb350c4768f3ac501672d90b4b9af7243650ccf74a467d4ef8e2e9
|
|
7
|
+
data.tar.gz: 6ac18ddcefc0de413b62e83fe41650ddcda96b9fea09c361e482a6e4597443318ba8f13bd1f8f29c16452bc8065f1cff341dce95b7665d3a25a1fec1b9ecb54f
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.0] - 2026-10-01
|
|
9
|
+
|
|
10
|
+
### Breaking changes
|
|
11
|
+
|
|
12
|
+
- Drop Ruby 3.2 support; require Ruby >= 3.3 ([9e0d2bd](https://github.com/outcomesinsights/sequel-duckdb/commit/9e0d2bda53aae129ee02773316e8c75a1142c480)): sequel-duckdb no longer installs on Ruby 3.2.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Ship only lib/ and three docs; stop tracking the beads key ([c45dfc4](https://github.com/outcomesinsights/sequel-duckdb/commit/c45dfc4636917269f6333da1be2b21ed8855a0c2))
|
|
17
|
+
|
|
8
18
|
## [0.2.1](https://github.com/outcomesinsights/sequel-duckdb/compare/v0.2.0...v0.2.1) (2026-10-01)
|
|
9
19
|
|
|
10
20
|
No changes to the gem's behaviour. The first release published by the
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel-duckdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Duryea
|
|
8
|
-
bindir:
|
|
8
|
+
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
@@ -164,69 +164,15 @@ executables: []
|
|
|
164
164
|
extensions: []
|
|
165
165
|
extra_rdoc_files: []
|
|
166
166
|
files:
|
|
167
|
-
- ".beads/.beads-credential-key"
|
|
168
|
-
- ".beads/.gitignore"
|
|
169
|
-
- ".beads/README.md"
|
|
170
|
-
- ".beads/config.yaml"
|
|
171
|
-
- ".beads/hooks/post-checkout"
|
|
172
|
-
- ".beads/hooks/post-merge"
|
|
173
|
-
- ".beads/hooks/pre-commit"
|
|
174
|
-
- ".beads/hooks/pre-push"
|
|
175
|
-
- ".beads/hooks/prepare-commit-msg"
|
|
176
|
-
- ".beads/metadata.json"
|
|
177
|
-
- ".kiro/specs/advanced-sql-features-implementation/design.md"
|
|
178
|
-
- ".kiro/specs/advanced-sql-features-implementation/requirements.md"
|
|
179
|
-
- ".kiro/specs/advanced-sql-features-implementation/tasks.md"
|
|
180
|
-
- ".kiro/specs/duckdb-sql-syntax-compatibility/design.md"
|
|
181
|
-
- ".kiro/specs/duckdb-sql-syntax-compatibility/requirements.md"
|
|
182
|
-
- ".kiro/specs/duckdb-sql-syntax-compatibility/tasks.md"
|
|
183
|
-
- ".kiro/specs/edge-cases-and-validation-fixes/requirements.md"
|
|
184
|
-
- ".kiro/specs/integration-test-database-setup/design.md"
|
|
185
|
-
- ".kiro/specs/integration-test-database-setup/requirements.md"
|
|
186
|
-
- ".kiro/specs/sequel-duckdb-adapter/design.md"
|
|
187
|
-
- ".kiro/specs/sequel-duckdb-adapter/requirements.md"
|
|
188
|
-
- ".kiro/specs/sequel-duckdb-adapter/tasks.md"
|
|
189
|
-
- ".kiro/specs/sql-expression-handling-fix/design.md"
|
|
190
|
-
- ".kiro/specs/sql-expression-handling-fix/requirements.md"
|
|
191
|
-
- ".kiro/specs/sql-expression-handling-fix/tasks.md"
|
|
192
|
-
- ".kiro/specs/test-infrastructure-improvements/requirements.md"
|
|
193
|
-
- ".kiro/steering/product.md"
|
|
194
|
-
- ".kiro/steering/structure.md"
|
|
195
|
-
- ".kiro/steering/tech.md"
|
|
196
|
-
- ".kiro/steering/testing.md"
|
|
197
|
-
- ".mdformat.toml"
|
|
198
|
-
- ".rubocop.yml"
|
|
199
|
-
- ".rubocop_todo.yml"
|
|
200
|
-
- ".yardopts"
|
|
201
|
-
- AGENTS.md
|
|
202
|
-
- API_DOCUMENTATION.md
|
|
203
167
|
- CHANGELOG.md
|
|
204
|
-
- FINAL_STATUS.md
|
|
205
168
|
- LICENSE
|
|
206
|
-
- MIGRATION_EXAMPLES.md
|
|
207
|
-
- PERFORMANCE_OPTIMIZATIONS.md
|
|
208
169
|
- README.md
|
|
209
|
-
- REFACTORING_SUMMARY.md
|
|
210
|
-
- Rakefile
|
|
211
|
-
- TASK_10.2_IMPLEMENTATION_SUMMARY.md
|
|
212
|
-
- docs/DUCKDB_SQL_PATTERNS.md
|
|
213
|
-
- docs/TASK_12_VERIFICATION_SUMMARY.md
|
|
214
|
-
- justfile
|
|
215
170
|
- lib/sequel/adapters/duckdb.rb
|
|
216
171
|
- lib/sequel/adapters/shared/duckdb.rb
|
|
217
172
|
- lib/sequel/duckdb.rb
|
|
218
173
|
- lib/sequel/duckdb/helpers/copier.rb
|
|
219
174
|
- lib/sequel/duckdb/helpers/pathifier.rb
|
|
220
175
|
- lib/sequel/duckdb/version.rb
|
|
221
|
-
- plans/date_arithmetic.md
|
|
222
|
-
- plans/engineering/Sequel.md
|
|
223
|
-
- plans/engineering/duckdb.md
|
|
224
|
-
- plans/engineering/sqlite.md
|
|
225
|
-
- plans/mock_connection_bug.md
|
|
226
|
-
- plans/mock_without_driver_gem.md
|
|
227
|
-
- plans/over_engineering_analysis.md
|
|
228
|
-
- plans/schema_management.md
|
|
229
|
-
- sig/sequel/duckdb.rbs
|
|
230
176
|
homepage: https://github.com/sequel/sequel-duckdb
|
|
231
177
|
licenses:
|
|
232
178
|
- MIT
|
|
@@ -242,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
242
188
|
requirements:
|
|
243
189
|
- - ">="
|
|
244
190
|
- !ruby/object:Gem::Version
|
|
245
|
-
version: 3.
|
|
191
|
+
version: 3.3.0
|
|
246
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
193
|
requirements:
|
|
248
194
|
- - ">="
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
�:I>����G��O�FԤ�L1 s<j�,
|
data/.beads/.gitignore
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# Dolt database (managed by Dolt, not git)
|
|
2
|
-
dolt/
|
|
3
|
-
dolt-access.lock
|
|
4
|
-
|
|
5
|
-
# Runtime files
|
|
6
|
-
bd.sock
|
|
7
|
-
bd.sock.startlock
|
|
8
|
-
sync-state.json
|
|
9
|
-
last-touched
|
|
10
|
-
.exclusive-lock
|
|
11
|
-
|
|
12
|
-
# Daemon runtime (lock, log, pid)
|
|
13
|
-
daemon.*
|
|
14
|
-
|
|
15
|
-
# Interactions log (runtime, not versioned)
|
|
16
|
-
interactions.jsonl
|
|
17
|
-
|
|
18
|
-
# Push state (runtime, per-machine)
|
|
19
|
-
push-state.json
|
|
20
|
-
|
|
21
|
-
# Lock files (various runtime locks)
|
|
22
|
-
*.lock
|
|
23
|
-
|
|
24
|
-
# Local version tracking (prevents upgrade notification spam after git ops)
|
|
25
|
-
.local_version
|
|
26
|
-
|
|
27
|
-
# Worktree redirect file (contains relative path to main repo's .beads/)
|
|
28
|
-
# Must not be committed as paths would be wrong in other clones
|
|
29
|
-
redirect
|
|
30
|
-
|
|
31
|
-
# Sync state (local-only, per-machine)
|
|
32
|
-
# These files are machine-specific and should not be shared across clones
|
|
33
|
-
.sync.lock
|
|
34
|
-
export-state/
|
|
35
|
-
|
|
36
|
-
# Ephemeral store (SQLite - wisps/molecules, intentionally not versioned)
|
|
37
|
-
ephemeral.sqlite3
|
|
38
|
-
ephemeral.sqlite3-journal
|
|
39
|
-
ephemeral.sqlite3-wal
|
|
40
|
-
ephemeral.sqlite3-shm
|
|
41
|
-
|
|
42
|
-
# Dolt server management (auto-started by bd)
|
|
43
|
-
dolt-server.pid
|
|
44
|
-
dolt-server.log
|
|
45
|
-
dolt-server.lock
|
|
46
|
-
dolt-server.port
|
|
47
|
-
|
|
48
|
-
# Corrupt backup directories (created by bd doctor --fix recovery)
|
|
49
|
-
*.corrupt.backup/
|
|
50
|
-
|
|
51
|
-
# Backup data (auto-exported JSONL, local-only)
|
|
52
|
-
backup/
|
|
53
|
-
|
|
54
|
-
# Legacy files (from pre-Dolt versions)
|
|
55
|
-
*.db
|
|
56
|
-
*.db?*
|
|
57
|
-
*.db-journal
|
|
58
|
-
*.db-wal
|
|
59
|
-
*.db-shm
|
|
60
|
-
db.sqlite
|
|
61
|
-
bd.db
|
|
62
|
-
# NOTE: Do NOT add negation patterns here.
|
|
63
|
-
# They would override fork protection in .git/info/exclude.
|
|
64
|
-
# Config files (metadata.json, config.yaml) are tracked by git by default
|
|
65
|
-
# since no pattern above ignores them.
|
|
66
|
-
.beads-credential-key
|
data/.beads/README.md
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# Beads - AI-Native Issue Tracking
|
|
2
|
-
|
|
3
|
-
Welcome to Beads! This repository uses **Beads** for issue tracking - a modern, AI-native tool designed to live directly in your codebase alongside your code.
|
|
4
|
-
|
|
5
|
-
## What is Beads?
|
|
6
|
-
|
|
7
|
-
Beads is issue tracking that lives in your repo, making it perfect for AI coding agents and developers who want their issues close to their code. No web UI required - everything works through the CLI and integrates seamlessly with git.
|
|
8
|
-
|
|
9
|
-
**Learn more:** [github.com/steveyegge/beads](https://github.com/steveyegge/beads)
|
|
10
|
-
|
|
11
|
-
## Quick Start
|
|
12
|
-
|
|
13
|
-
### Essential Commands
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
# Create new issues
|
|
17
|
-
bd create "Add user authentication"
|
|
18
|
-
|
|
19
|
-
# View all issues
|
|
20
|
-
bd list
|
|
21
|
-
|
|
22
|
-
# View issue details
|
|
23
|
-
bd show <issue-id>
|
|
24
|
-
|
|
25
|
-
# Update issue status
|
|
26
|
-
bd update <issue-id> --claim
|
|
27
|
-
bd update <issue-id> --status done
|
|
28
|
-
|
|
29
|
-
# Sync with Dolt remote
|
|
30
|
-
bd dolt push
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Working with Issues
|
|
34
|
-
|
|
35
|
-
Issues in Beads are:
|
|
36
|
-
|
|
37
|
-
- **Git-native**: Stored in Dolt database with version control and branching
|
|
38
|
-
- **AI-friendly**: CLI-first design works perfectly with AI coding agents
|
|
39
|
-
- **Branch-aware**: Issues can follow your branch workflow
|
|
40
|
-
- **Always in sync**: Auto-syncs with your commits
|
|
41
|
-
|
|
42
|
-
## Why Beads?
|
|
43
|
-
|
|
44
|
-
✨ **AI-Native Design**
|
|
45
|
-
|
|
46
|
-
- Built specifically for AI-assisted development workflows
|
|
47
|
-
- CLI-first interface works seamlessly with AI coding agents
|
|
48
|
-
- No context switching to web UIs
|
|
49
|
-
|
|
50
|
-
🚀 **Developer Focused**
|
|
51
|
-
|
|
52
|
-
- Issues live in your repo, right next to your code
|
|
53
|
-
- Works offline, syncs when you push
|
|
54
|
-
- Fast, lightweight, and stays out of your way
|
|
55
|
-
|
|
56
|
-
🔧 **Git Integration**
|
|
57
|
-
|
|
58
|
-
- Automatic sync with git commits
|
|
59
|
-
- Branch-aware issue tracking
|
|
60
|
-
- Dolt-native three-way merge resolution
|
|
61
|
-
|
|
62
|
-
## Get Started with Beads
|
|
63
|
-
|
|
64
|
-
Try Beads in your own projects:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
# Install Beads
|
|
68
|
-
curl -sSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash
|
|
69
|
-
|
|
70
|
-
# Initialize in your repo
|
|
71
|
-
bd init
|
|
72
|
-
|
|
73
|
-
# Create your first issue
|
|
74
|
-
bd create "Try out Beads"
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## Learn More
|
|
78
|
-
|
|
79
|
-
- **Documentation**: [github.com/steveyegge/beads/docs](https://github.com/steveyegge/beads/tree/main/docs)
|
|
80
|
-
- **Quick Start Guide**: Run `bd quickstart`
|
|
81
|
-
- **Examples**: [github.com/steveyegge/beads/examples](https://github.com/steveyegge/beads/tree/main/examples)
|
|
82
|
-
|
|
83
|
-
______________________________________________________________________
|
|
84
|
-
|
|
85
|
-
*Beads: Issue tracking that moves at the speed of thought* ⚡
|
data/.beads/config.yaml
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# Beads Configuration File
|
|
2
|
-
# This file configures default behavior for all bd commands in this repository
|
|
3
|
-
# All settings can also be set via environment variables (BD_* prefix)
|
|
4
|
-
# or overridden with command-line flags
|
|
5
|
-
|
|
6
|
-
# Issue prefix for this repository (used by bd init)
|
|
7
|
-
# If not set, bd init will auto-detect from directory name
|
|
8
|
-
# Example: issue-prefix: "myproject" creates issues like "myproject-1", "myproject-2", etc.
|
|
9
|
-
# issue-prefix: ""
|
|
10
|
-
|
|
11
|
-
# Use no-db mode: JSONL-only, no Dolt database
|
|
12
|
-
# When true, bd will use .beads/issues.jsonl as the source of truth
|
|
13
|
-
# no-db: false
|
|
14
|
-
|
|
15
|
-
# Enable JSON output by default
|
|
16
|
-
# json: false
|
|
17
|
-
|
|
18
|
-
# Feedback title formatting for mutating commands (create/update/close/dep/edit)
|
|
19
|
-
# 0 = hide titles, N > 0 = truncate to N characters
|
|
20
|
-
# output:
|
|
21
|
-
# title-length: 255
|
|
22
|
-
|
|
23
|
-
# Default actor for audit trails (overridden by BD_ACTOR or --actor)
|
|
24
|
-
# actor: ""
|
|
25
|
-
|
|
26
|
-
# Export events (audit trail) to .beads/events.jsonl on each flush/sync
|
|
27
|
-
# When enabled, new events are appended incrementally using a high-water mark.
|
|
28
|
-
# Use 'bd export --events' to trigger manually regardless of this setting.
|
|
29
|
-
# events-export: false
|
|
30
|
-
|
|
31
|
-
# Multi-repo configuration (experimental - bd-307)
|
|
32
|
-
# Allows hydrating from multiple repositories and routing writes to the correct database
|
|
33
|
-
# repos:
|
|
34
|
-
# primary: "." # Primary repo (where this database lives)
|
|
35
|
-
# additional: # Additional repos to hydrate from (read-only)
|
|
36
|
-
# - ~/beads-planning # Personal planning repo
|
|
37
|
-
# - ~/work-planning # Work planning repo
|
|
38
|
-
|
|
39
|
-
# JSONL backup (periodic export for off-machine recovery)
|
|
40
|
-
# Auto-enabled when a git remote exists. Override explicitly:
|
|
41
|
-
# backup:
|
|
42
|
-
# enabled: false # Disable auto-backup entirely
|
|
43
|
-
# interval: 15m # Minimum time between auto-exports
|
|
44
|
-
# git-push: false # Disable git push (export locally only)
|
|
45
|
-
# git-repo: "" # Separate git repo for backups (default: project repo)
|
|
46
|
-
|
|
47
|
-
# Integration settings (access with 'bd config get/set')
|
|
48
|
-
# These are stored in the database, not in this file:
|
|
49
|
-
# - jira.url
|
|
50
|
-
# - jira.project
|
|
51
|
-
# - linear.url
|
|
52
|
-
# - linear.api-key
|
|
53
|
-
# - github.org
|
|
54
|
-
# - github.repo
|
|
55
|
-
|
|
56
|
-
sync.remote: "git+ssh://git@github.com/outcomesinsights/sequel-duckdb.git"
|
data/.beads/hooks/post-checkout
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
# --- BEGIN BEADS INTEGRATION v0.61.0 ---
|
|
3
|
-
# This section is managed by beads. Do not remove these markers.
|
|
4
|
-
if command -v bd >/dev/null 2>&1; then
|
|
5
|
-
export BD_GIT_HOOK=1
|
|
6
|
-
_bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
|
|
7
|
-
if command -v timeout >/dev/null 2>&1; then
|
|
8
|
-
timeout "$_bd_timeout" bd hooks run post-checkout "$@"
|
|
9
|
-
_bd_exit=$?
|
|
10
|
-
if [ $_bd_exit -eq 124 ]; then
|
|
11
|
-
echo >&2 "beads: hook 'post-checkout' timed out after ${_bd_timeout}s — continuing without beads"
|
|
12
|
-
_bd_exit=0
|
|
13
|
-
fi
|
|
14
|
-
else
|
|
15
|
-
bd hooks run post-checkout "$@"
|
|
16
|
-
_bd_exit=$?
|
|
17
|
-
fi
|
|
18
|
-
if [ $_bd_exit -eq 3 ]; then
|
|
19
|
-
echo >&2 "beads: database not initialized — skipping hook 'post-checkout'"
|
|
20
|
-
_bd_exit=0
|
|
21
|
-
fi
|
|
22
|
-
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
23
|
-
fi
|
|
24
|
-
# --- END BEADS INTEGRATION v0.61.0 ---
|
data/.beads/hooks/post-merge
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
# --- BEGIN BEADS INTEGRATION v0.61.0 ---
|
|
3
|
-
# This section is managed by beads. Do not remove these markers.
|
|
4
|
-
if command -v bd >/dev/null 2>&1; then
|
|
5
|
-
export BD_GIT_HOOK=1
|
|
6
|
-
_bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
|
|
7
|
-
if command -v timeout >/dev/null 2>&1; then
|
|
8
|
-
timeout "$_bd_timeout" bd hooks run post-merge "$@"
|
|
9
|
-
_bd_exit=$?
|
|
10
|
-
if [ $_bd_exit -eq 124 ]; then
|
|
11
|
-
echo >&2 "beads: hook 'post-merge' timed out after ${_bd_timeout}s — continuing without beads"
|
|
12
|
-
_bd_exit=0
|
|
13
|
-
fi
|
|
14
|
-
else
|
|
15
|
-
bd hooks run post-merge "$@"
|
|
16
|
-
_bd_exit=$?
|
|
17
|
-
fi
|
|
18
|
-
if [ $_bd_exit -eq 3 ]; then
|
|
19
|
-
echo >&2 "beads: database not initialized — skipping hook 'post-merge'"
|
|
20
|
-
_bd_exit=0
|
|
21
|
-
fi
|
|
22
|
-
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
23
|
-
fi
|
|
24
|
-
# --- END BEADS INTEGRATION v0.61.0 ---
|
data/.beads/hooks/pre-commit
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
# --- BEGIN BEADS INTEGRATION v0.61.0 ---
|
|
3
|
-
# This section is managed by beads. Do not remove these markers.
|
|
4
|
-
if command -v bd >/dev/null 2>&1; then
|
|
5
|
-
export BD_GIT_HOOK=1
|
|
6
|
-
_bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
|
|
7
|
-
if command -v timeout >/dev/null 2>&1; then
|
|
8
|
-
timeout "$_bd_timeout" bd hooks run pre-commit "$@"
|
|
9
|
-
_bd_exit=$?
|
|
10
|
-
if [ $_bd_exit -eq 124 ]; then
|
|
11
|
-
echo >&2 "beads: hook 'pre-commit' timed out after ${_bd_timeout}s — continuing without beads"
|
|
12
|
-
_bd_exit=0
|
|
13
|
-
fi
|
|
14
|
-
else
|
|
15
|
-
bd hooks run pre-commit "$@"
|
|
16
|
-
_bd_exit=$?
|
|
17
|
-
fi
|
|
18
|
-
if [ $_bd_exit -eq 3 ]; then
|
|
19
|
-
echo >&2 "beads: database not initialized — skipping hook 'pre-commit'"
|
|
20
|
-
_bd_exit=0
|
|
21
|
-
fi
|
|
22
|
-
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
23
|
-
fi
|
|
24
|
-
# --- END BEADS INTEGRATION v0.61.0 ---
|
data/.beads/hooks/pre-push
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
# --- BEGIN BEADS INTEGRATION v0.61.0 ---
|
|
3
|
-
# This section is managed by beads. Do not remove these markers.
|
|
4
|
-
if command -v bd >/dev/null 2>&1; then
|
|
5
|
-
export BD_GIT_HOOK=1
|
|
6
|
-
_bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
|
|
7
|
-
if command -v timeout >/dev/null 2>&1; then
|
|
8
|
-
timeout "$_bd_timeout" bd hooks run pre-push "$@"
|
|
9
|
-
_bd_exit=$?
|
|
10
|
-
if [ $_bd_exit -eq 124 ]; then
|
|
11
|
-
echo >&2 "beads: hook 'pre-push' timed out after ${_bd_timeout}s — continuing without beads"
|
|
12
|
-
_bd_exit=0
|
|
13
|
-
fi
|
|
14
|
-
else
|
|
15
|
-
bd hooks run pre-push "$@"
|
|
16
|
-
_bd_exit=$?
|
|
17
|
-
fi
|
|
18
|
-
if [ $_bd_exit -eq 3 ]; then
|
|
19
|
-
echo >&2 "beads: database not initialized — skipping hook 'pre-push'"
|
|
20
|
-
_bd_exit=0
|
|
21
|
-
fi
|
|
22
|
-
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
23
|
-
fi
|
|
24
|
-
# --- END BEADS INTEGRATION v0.61.0 ---
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
# --- BEGIN BEADS INTEGRATION v0.61.0 ---
|
|
3
|
-
# This section is managed by beads. Do not remove these markers.
|
|
4
|
-
if command -v bd >/dev/null 2>&1; then
|
|
5
|
-
export BD_GIT_HOOK=1
|
|
6
|
-
_bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
|
|
7
|
-
if command -v timeout >/dev/null 2>&1; then
|
|
8
|
-
timeout "$_bd_timeout" bd hooks run prepare-commit-msg "$@"
|
|
9
|
-
_bd_exit=$?
|
|
10
|
-
if [ $_bd_exit -eq 124 ]; then
|
|
11
|
-
echo >&2 "beads: hook 'prepare-commit-msg' timed out after ${_bd_timeout}s — continuing without beads"
|
|
12
|
-
_bd_exit=0
|
|
13
|
-
fi
|
|
14
|
-
else
|
|
15
|
-
bd hooks run prepare-commit-msg "$@"
|
|
16
|
-
_bd_exit=$?
|
|
17
|
-
fi
|
|
18
|
-
if [ $_bd_exit -eq 3 ]; then
|
|
19
|
-
echo >&2 "beads: database not initialized — skipping hook 'prepare-commit-msg'"
|
|
20
|
-
_bd_exit=0
|
|
21
|
-
fi
|
|
22
|
-
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
23
|
-
fi
|
|
24
|
-
# --- END BEADS INTEGRATION v0.61.0 ---
|
data/.beads/metadata.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Design Document: Advanced SQL Features Implementation
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
Most advanced SQL features are already implemented. This focuses on verification, testing, and minor enhancements.
|
|
6
|
-
|
|
7
|
-
**Status:**
|
|
8
|
-
|
|
9
|
-
- JOIN USING, recursive CTEs, set operations, error handling: ✅ Implemented
|
|
10
|
-
- Window functions: ✅ Basic support exists
|
|
11
|
-
- DuckDB configuration: ✅ Basic PRAGMA support exists
|
|
12
|
-
|
|
13
|
-
**Remaining Work:**
|
|
14
|
-
|
|
15
|
-
- Test window functions with actual DuckDB
|
|
16
|
-
- Test advanced expressions (arrays, JSON)
|
|
17
|
-
- Add user-friendly configuration methods
|
|
18
|
-
- Integration testing
|
|
19
|
-
|
|
20
|
-
## Implementation Approach
|
|
21
|
-
|
|
22
|
-
1. **Test existing functionality** - Verify implemented features work correctly
|
|
23
|
-
2. **Add convenience methods** - User-friendly configuration interface
|
|
24
|
-
3. **Integration testing** - Test with actual DuckDB databases
|
|
25
|
-
|
|
26
|
-
This is primarily testing and verification, not new feature implementation.
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Requirements Document
|
|
2
|
-
|
|
3
|
-
## Introduction
|
|
4
|
-
|
|
5
|
-
Most advanced SQL features are already implemented. This focuses on remaining verification and testing needs.
|
|
6
|
-
|
|
7
|
-
## Requirements
|
|
8
|
-
|
|
9
|
-
### Requirement 1: Window Function Verification
|
|
10
|
-
|
|
11
|
-
**User Story:** As a developer, I want to verify window functions work correctly with DuckDB.
|
|
12
|
-
|
|
13
|
-
#### Acceptance Criteria
|
|
14
|
-
|
|
15
|
-
1. WHEN I use window functions THEN they SHALL generate correct SQL and execute properly
|
|
16
|
-
2. WHEN I use LAG/LEAD functions THEN they SHALL support offset and default parameters
|
|
17
|
-
|
|
18
|
-
### Requirement 2: Advanced Expression Testing
|
|
19
|
-
|
|
20
|
-
**User Story:** As a developer, I want to test advanced DuckDB expressions work correctly.
|
|
21
|
-
|
|
22
|
-
#### Acceptance Criteria
|
|
23
|
-
|
|
24
|
-
1. WHEN I use array syntax THEN it SHALL use DuckDB's `[1, 2, 3]` format
|
|
25
|
-
2. WHEN I use JSON functions THEN they SHALL work with DuckDB's JSON support
|
|
26
|
-
|
|
27
|
-
### Requirement 3: Configuration Interface Enhancement
|
|
28
|
-
|
|
29
|
-
**User Story:** As a developer, I want user-friendly configuration methods.
|
|
30
|
-
|
|
31
|
-
#### Acceptance Criteria
|
|
32
|
-
|
|
33
|
-
1. WHEN I use `db.set_pragma(key, value)` THEN it SHALL execute PRAGMA statements
|
|
34
|
-
2. WHEN I use `db.configure_duckdb(options)` THEN it SHALL apply multiple settings
|
|
35
|
-
|
|
36
|
-
### Requirement 4: Integration Testing
|
|
37
|
-
|
|
38
|
-
**User Story:** As a developer, I want comprehensive integration tests.
|
|
39
|
-
|
|
40
|
-
#### Acceptance Criteria
|
|
41
|
-
|
|
42
|
-
1. WHEN I run tests THEN all advanced features SHALL work with actual DuckDB databases
|
|
43
|
-
2. WHEN errors occur THEN they SHALL be properly mapped to Sequel exceptions
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Implementation Plan
|
|
2
|
-
|
|
3
|
-
Most advanced SQL features are already implemented. Remaining tasks based on current code analysis:
|
|
4
|
-
|
|
5
|
-
- [x] 1. Test window functions
|
|
6
|
-
|
|
7
|
-
- ~~Add tests to `test/dataset_test.rb` for ROW_NUMBER, RANK, DENSE_RANK~~ ✅ Already implemented
|
|
8
|
-
- ~~Test LAG/LEAD functions with offset and default parameters~~ ✅ Already implemented
|
|
9
|
-
- _Requirements: 1.1, 1.2_
|
|
10
|
-
|
|
11
|
-
- [x] 2. Test advanced expressions
|
|
12
|
-
|
|
13
|
-
- Add tests to `test/sql_test.rb` for DuckDB array syntax `[1, 2, 3]`
|
|
14
|
-
- Test JSON functions like `json_extract`
|
|
15
|
-
- _Requirements: 2.1, 2.2_
|
|
16
|
-
|
|
17
|
-
- [x] 3. Add configuration convenience methods
|
|
18
|
-
|
|
19
|
-
- Add `set_pragma(key, value)` method to `DatabaseMethods` (user-friendly wrapper)
|
|
20
|
-
- Add `configure_duckdb(options)` method for batch configuration
|
|
21
|
-
- Add tests to `test/database_test.rb`
|
|
22
|
-
- _Requirements: 3.1, 3.2_
|
|
23
|
-
|
|
24
|
-
- [x] 4. Integration testing
|
|
25
|
-
|
|
26
|
-
- ~~Add integration tests to existing test files using actual DuckDB databases~~ ✅ Already implemented
|
|
27
|
-
- ~~Test that all advanced features work together correctly~~ ✅ Already implemented
|
|
28
|
-
- _Requirements: 4.1, 4.2_
|