sequel-duckdb 0.2.0 → 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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -20
  3. data/lib/sequel/duckdb/version.rb +1 -4
  4. metadata +3 -59
  5. data/.beads/.beads-credential-key +0 -1
  6. data/.beads/.gitignore +0 -66
  7. data/.beads/README.md +0 -85
  8. data/.beads/config.yaml +0 -56
  9. data/.beads/hooks/post-checkout +0 -24
  10. data/.beads/hooks/post-merge +0 -24
  11. data/.beads/hooks/pre-commit +0 -24
  12. data/.beads/hooks/pre-push +0 -24
  13. data/.beads/hooks/prepare-commit-msg +0 -24
  14. data/.beads/metadata.json +0 -7
  15. data/.kiro/specs/advanced-sql-features-implementation/design.md +0 -26
  16. data/.kiro/specs/advanced-sql-features-implementation/requirements.md +0 -43
  17. data/.kiro/specs/advanced-sql-features-implementation/tasks.md +0 -28
  18. data/.kiro/specs/duckdb-sql-syntax-compatibility/design.md +0 -272
  19. data/.kiro/specs/duckdb-sql-syntax-compatibility/requirements.md +0 -84
  20. data/.kiro/specs/duckdb-sql-syntax-compatibility/tasks.md +0 -107
  21. data/.kiro/specs/edge-cases-and-validation-fixes/requirements.md +0 -32
  22. data/.kiro/specs/integration-test-database-setup/design.md +0 -0
  23. data/.kiro/specs/integration-test-database-setup/requirements.md +0 -117
  24. data/.kiro/specs/sequel-duckdb-adapter/design.md +0 -549
  25. data/.kiro/specs/sequel-duckdb-adapter/requirements.md +0 -202
  26. data/.kiro/specs/sequel-duckdb-adapter/tasks.md +0 -292
  27. data/.kiro/specs/sql-expression-handling-fix/design.md +0 -331
  28. data/.kiro/specs/sql-expression-handling-fix/requirements.md +0 -86
  29. data/.kiro/specs/sql-expression-handling-fix/tasks.md +0 -25
  30. data/.kiro/specs/test-infrastructure-improvements/requirements.md +0 -106
  31. data/.kiro/steering/product.md +0 -26
  32. data/.kiro/steering/structure.md +0 -88
  33. data/.kiro/steering/tech.md +0 -137
  34. data/.kiro/steering/testing.md +0 -213
  35. data/.mdformat.toml +0 -2
  36. data/.release-please-manifest.json +0 -3
  37. data/.rubocop.yml +0 -161
  38. data/.rubocop_todo.yml +0 -323
  39. data/.yardopts +0 -8
  40. data/AGENTS.md +0 -154
  41. data/API_DOCUMENTATION.md +0 -943
  42. data/FINAL_STATUS.md +0 -99
  43. data/MIGRATION_EXAMPLES.md +0 -740
  44. data/PERFORMANCE_OPTIMIZATIONS.md +0 -726
  45. data/REFACTORING_SUMMARY.md +0 -264
  46. data/Rakefile +0 -43
  47. data/TASK_10.2_IMPLEMENTATION_SUMMARY.md +0 -182
  48. data/docs/DUCKDB_SQL_PATTERNS.md +0 -448
  49. data/docs/TASK_12_VERIFICATION_SUMMARY.md +0 -135
  50. data/justfile +0 -52
  51. data/plans/date_arithmetic.md +0 -420
  52. data/plans/engineering/Sequel.md +0 -471
  53. data/plans/engineering/duckdb.md +0 -712
  54. data/plans/engineering/sqlite.md +0 -453
  55. data/plans/mock_connection_bug.md +0 -333
  56. data/plans/mock_without_driver_gem.md +0 -371
  57. data/plans/over_engineering_analysis.md +0 -122
  58. data/plans/schema_management.md +0 -383
  59. data/release-please-config.json +0 -14
  60. data/sig/sequel/duckdb.rbs +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4767efb050303f1b91acddbbe01fd263d1230bb02e1747c013728856d4ceb1b2
4
- data.tar.gz: d266f8c0f5169da511c887cc8902d1b288b66c0e67459a1a21873378991d2e58
3
+ metadata.gz: 3e465f675eb8331927ee6bef47ac89ddf5c1b740ebe901874b57860b14d5d5d4
4
+ data.tar.gz: 62ca18b7870e68e85e3f557a7ff8697e59f0023659005227e257877b51e3e5b2
5
5
  SHA512:
6
- metadata.gz: 19448226d83feefa1708018c918af2f94178ebc5b888ea116b59e11cd7f24f151843544b064030bb81701825516c3e0aebab70301ee4dbd79922b43d6c4db436
7
- data.tar.gz: a1d751a3e64769fdad344fec138a29860568acf5d9930b972b2893fc4008c25cd5fc5798ab93a20192fc8f5563d3fa5bfade189affb75a1c8b51aa6efdc93b93
6
+ metadata.gz: 2882f239ed7c4dd659c63352571d740338659a3b18a4df14bded7ecb240961cbabd89f2245eb350c4768f3ac501672d90b4b9af7243650ccf74a467d4ef8e2e9
7
+ data.tar.gz: 6ac18ddcefc0de413b62e83fe41650ddcda96b9fea09c361e482a6e4597443318ba8f13bd1f8f29c16452bc8065f1cff341dce95b7665d3a25a1fec1b9ecb54f
data/CHANGELOG.md CHANGED
@@ -5,42 +5,53 @@ 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.2.0](https://github.com/outcomesinsights/sequel-duckdb/compare/v0.1.0...v0.2.0) (2026-09-30)
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))
9
17
 
18
+ ## [0.2.1](https://github.com/outcomesinsights/sequel-duckdb/compare/v0.2.0...v0.2.1) (2026-10-01)
19
+
20
+ No changes to the gem's behaviour. The first release published by the
21
+ tag-based release workflow.
22
+
23
+ ## [0.2.0](https://github.com/outcomesinsights/sequel-duckdb/compare/v0.1.0...v0.2.0) (2026-09-30)
10
24
 
11
25
  ### ⚠ BREAKING CHANGES
12
26
 
13
- * Removed parameterized query support, custom error handling methods, and other over-engineered features. Adapter now follows Sequel conventions using built-in features.
14
- * Removed custom error message formatting methods (database_exception_message, database_exception_class, handle_constraint_violation) in favor of Sequel's built-in patterns.
27
+ - Removed parameterized query support, custom error handling methods, and other over-engineered features. Adapter now follows Sequel conventions using built-in features.
28
+ - Removed custom error message formatting methods (database_exception_message, database_exception_class, handle_constraint_violation) in favor of Sequel's built-in patterns.
15
29
 
16
30
  ### Features
17
31
 
18
- * add Database#copy_to support ([17ce698](https://github.com/outcomesinsights/sequel-duckdb/commit/17ce6981fca43653ecd50c29f83b50bcf7e5b23b))
19
- * add schema methods ([fcd11fd](https://github.com/outcomesinsights/sequel-duckdb/commit/fcd11fd99b267b925888ef8accfc7bc7dbad87ad))
20
- * add support for date_arithmetic ([fc0dde7](https://github.com/outcomesinsights/sequel-duckdb/commit/fc0dde71c542f3a1cb23310a12b8529065b9baf6))
21
- * additional options for create_view ([7f19ad2](https://github.com/outcomesinsights/sequel-duckdb/commit/7f19ad2efe3ea7c1074b5e9e8a1c918216958701))
22
- * share DuckDB::Database instance and support cross-database schema queries ([564cb47](https://github.com/outcomesinsights/sequel-duckdb/commit/564cb4767471f0a5183e7219bf6008e57e644fec))
23
- * support different read_* functions in CREATE VIEW ([98eba2e](https://github.com/outcomesinsights/sequel-duckdb/commit/98eba2ed486d1f775508ea4bac0dc6f7cd62a37e))
24
-
32
+ - add Database#copy_to support ([17ce698](https://github.com/outcomesinsights/sequel-duckdb/commit/17ce6981fca43653ecd50c29f83b50bcf7e5b23b))
33
+ - add schema methods ([fcd11fd](https://github.com/outcomesinsights/sequel-duckdb/commit/fcd11fd99b267b925888ef8accfc7bc7dbad87ad))
34
+ - add support for date_arithmetic ([fc0dde7](https://github.com/outcomesinsights/sequel-duckdb/commit/fc0dde71c542f3a1cb23310a12b8529065b9baf6))
35
+ - additional options for create_view ([7f19ad2](https://github.com/outcomesinsights/sequel-duckdb/commit/7f19ad2efe3ea7c1074b5e9e8a1c918216958701))
36
+ - share DuckDB::Database instance and support cross-database schema queries ([564cb47](https://github.com/outcomesinsights/sequel-duckdb/commit/564cb4767471f0a5183e7219bf6008e57e644fec))
37
+ - support different read\_\* functions in CREATE VIEW ([98eba2e](https://github.com/outcomesinsights/sequel-duckdb/commit/98eba2ed486d1f775508ea4bac0dc6f7cd62a37e))
25
38
 
26
39
  ### Bug Fixes
27
40
 
28
- * bump minimum Ruby to 3.2 and upgrade minitest to 6.x ([55b874d](https://github.com/outcomesinsights/sequel-duckdb/commit/55b874d96f49684f3a4f13eccb7c6af5fc83e6b8))
29
- * **ci:** install DuckDB C library for native extension ([#7](https://github.com/outcomesinsights/sequel-duckdb/issues/7)) ([7af7437](https://github.com/outcomesinsights/sequel-duckdb/commit/7af7437c8b4db151e913087e558d3950bed34601))
30
- * formatting for date_arithmetic ([835ad7e](https://github.com/outcomesinsights/sequel-duckdb/commit/835ad7e6a9de7fd0b6c441ee394aa8ff54cc0612))
31
- * move DuckDB::Database init from connect to adapter_initialize ([e06e0f2](https://github.com/outcomesinsights/sequel-duckdb/commit/e06e0f2958b958ae368948a80234af058a24b7cd))
32
- * remove hard duckdb C extension dependency from gemspec ([7c598ac](https://github.com/outcomesinsights/sequel-duckdb/commit/7c598ac53534c7d29567bdf6c2fe1170162fa216))
33
- * use nested module syntax for Helpers to support mock adapter loading ([7962262](https://github.com/outcomesinsights/sequel-duckdb/commit/7962262dd9c45369815404a2c325f67f2820295f))
34
-
41
+ - bump minimum Ruby to 3.2 and upgrade minitest to 6.x ([55b874d](https://github.com/outcomesinsights/sequel-duckdb/commit/55b874d96f49684f3a4f13eccb7c6af5fc83e6b8))
42
+ - **ci:** install DuckDB C library for native extension ([#7](https://github.com/outcomesinsights/sequel-duckdb/issues/7)) ([7af7437](https://github.com/outcomesinsights/sequel-duckdb/commit/7af7437c8b4db151e913087e558d3950bed34601))
43
+ - formatting for date_arithmetic ([835ad7e](https://github.com/outcomesinsights/sequel-duckdb/commit/835ad7e6a9de7fd0b6c441ee394aa8ff54cc0612))
44
+ - move DuckDB::Database init from connect to adapter_initialize ([e06e0f2](https://github.com/outcomesinsights/sequel-duckdb/commit/e06e0f2958b958ae368948a80234af058a24b7cd))
45
+ - remove hard duckdb C extension dependency from gemspec ([7c598ac](https://github.com/outcomesinsights/sequel-duckdb/commit/7c598ac53534c7d29567bdf6c2fe1170162fa216))
46
+ - use nested module syntax for Helpers to support mock adapter loading ([7962262](https://github.com/outcomesinsights/sequel-duckdb/commit/7962262dd9c45369815404a2c325f67f2820295f))
35
47
 
36
48
  ### Code Refactoring
37
49
 
38
- * simplify adapter execution and error handling ([e812777](https://github.com/outcomesinsights/sequel-duckdb/commit/e812777acd815466cebbd58cc1f54b8254fcabfd))
39
-
50
+ - simplify adapter execution and error handling ([e812777](https://github.com/outcomesinsights/sequel-duckdb/commit/e812777acd815466cebbd58cc1f54b8254fcabfd))
40
51
 
41
52
  ### Tests
42
53
 
43
- * remove tests for deleted features and fix remaining failures ([b056ec8](https://github.com/outcomesinsights/sequel-duckdb/commit/b056ec89ddc48957a35f8ecf302eddc07e47b959))
54
+ - remove tests for deleted features and fix remaining failures ([b056ec8](https://github.com/outcomesinsights/sequel-duckdb/commit/b056ec89ddc48957a35f8ecf302eddc07e47b959))
44
55
 
45
56
  ## [0.1.0] - 2025-07-21
46
57
 
@@ -11,9 +11,6 @@ module Sequel
11
11
  # puts Sequel::DuckDB::VERSION
12
12
  #
13
13
  # @since 0.1.0
14
- #
15
- # release-please bumps this file by rewriting the FIRST quoted version
16
- # string in it. Keep VERSION's value the only quoted version here.
17
- VERSION = "0.2.0"
14
+ VERSION = "0.3.0"
18
15
  end
19
16
  end
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.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Duryea
8
- bindir: exe
8
+ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
@@ -164,71 +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
- - ".release-please-manifest.json"
199
- - ".rubocop.yml"
200
- - ".rubocop_todo.yml"
201
- - ".yardopts"
202
- - AGENTS.md
203
- - API_DOCUMENTATION.md
204
167
  - CHANGELOG.md
205
- - FINAL_STATUS.md
206
168
  - LICENSE
207
- - MIGRATION_EXAMPLES.md
208
- - PERFORMANCE_OPTIMIZATIONS.md
209
169
  - README.md
210
- - REFACTORING_SUMMARY.md
211
- - Rakefile
212
- - TASK_10.2_IMPLEMENTATION_SUMMARY.md
213
- - docs/DUCKDB_SQL_PATTERNS.md
214
- - docs/TASK_12_VERIFICATION_SUMMARY.md
215
- - justfile
216
170
  - lib/sequel/adapters/duckdb.rb
217
171
  - lib/sequel/adapters/shared/duckdb.rb
218
172
  - lib/sequel/duckdb.rb
219
173
  - lib/sequel/duckdb/helpers/copier.rb
220
174
  - lib/sequel/duckdb/helpers/pathifier.rb
221
175
  - lib/sequel/duckdb/version.rb
222
- - plans/date_arithmetic.md
223
- - plans/engineering/Sequel.md
224
- - plans/engineering/duckdb.md
225
- - plans/engineering/sqlite.md
226
- - plans/mock_connection_bug.md
227
- - plans/mock_without_driver_gem.md
228
- - plans/over_engineering_analysis.md
229
- - plans/schema_management.md
230
- - release-please-config.json
231
- - sig/sequel/duckdb.rbs
232
176
  homepage: https://github.com/sequel/sequel-duckdb
233
177
  licenses:
234
178
  - MIT
@@ -244,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
188
  requirements:
245
189
  - - ">="
246
190
  - !ruby/object:Gem::Version
247
- version: 3.2.0
191
+ version: 3.3.0
248
192
  required_rubygems_version: !ruby/object:Gem::Requirement
249
193
  requirements:
250
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"
@@ -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 ---
@@ -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 ---
@@ -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 ---
@@ -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,7 +0,0 @@
1
- {
2
- "database": "dolt",
3
- "backend": "dolt",
4
- "dolt_mode": "embedded",
5
- "dolt_server_host": "127.0.0.1",
6
- "project_id": "5883e5bf-a919-4ca8-b7ee-d1cb7e08dfa5"
7
- }
@@ -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_