sequel-duckdb 0.2.1 → 0.3.1

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 +16 -0
  3. data/lib/sequel/adapters/duckdb.rb +3 -3
  4. data/lib/sequel/adapters/shared/duckdb.rb +17 -17
  5. data/lib/sequel/duckdb/version.rb +1 -1
  6. metadata +21 -60
  7. data/.beads/.beads-credential-key +0 -1
  8. data/.beads/.gitignore +0 -66
  9. data/.beads/README.md +0 -85
  10. data/.beads/config.yaml +0 -56
  11. data/.beads/hooks/post-checkout +0 -24
  12. data/.beads/hooks/post-merge +0 -24
  13. data/.beads/hooks/pre-commit +0 -24
  14. data/.beads/hooks/pre-push +0 -24
  15. data/.beads/hooks/prepare-commit-msg +0 -24
  16. data/.beads/metadata.json +0 -7
  17. data/.kiro/specs/advanced-sql-features-implementation/design.md +0 -26
  18. data/.kiro/specs/advanced-sql-features-implementation/requirements.md +0 -43
  19. data/.kiro/specs/advanced-sql-features-implementation/tasks.md +0 -28
  20. data/.kiro/specs/duckdb-sql-syntax-compatibility/design.md +0 -272
  21. data/.kiro/specs/duckdb-sql-syntax-compatibility/requirements.md +0 -84
  22. data/.kiro/specs/duckdb-sql-syntax-compatibility/tasks.md +0 -107
  23. data/.kiro/specs/edge-cases-and-validation-fixes/requirements.md +0 -32
  24. data/.kiro/specs/integration-test-database-setup/design.md +0 -0
  25. data/.kiro/specs/integration-test-database-setup/requirements.md +0 -117
  26. data/.kiro/specs/sequel-duckdb-adapter/design.md +0 -549
  27. data/.kiro/specs/sequel-duckdb-adapter/requirements.md +0 -202
  28. data/.kiro/specs/sequel-duckdb-adapter/tasks.md +0 -292
  29. data/.kiro/specs/sql-expression-handling-fix/design.md +0 -331
  30. data/.kiro/specs/sql-expression-handling-fix/requirements.md +0 -86
  31. data/.kiro/specs/sql-expression-handling-fix/tasks.md +0 -25
  32. data/.kiro/specs/test-infrastructure-improvements/requirements.md +0 -106
  33. data/.kiro/steering/product.md +0 -26
  34. data/.kiro/steering/structure.md +0 -88
  35. data/.kiro/steering/tech.md +0 -137
  36. data/.kiro/steering/testing.md +0 -213
  37. data/.mdformat.toml +0 -2
  38. data/.rubocop.yml +0 -161
  39. data/.rubocop_todo.yml +0 -323
  40. data/.yardopts +0 -8
  41. data/AGENTS.md +0 -180
  42. data/API_DOCUMENTATION.md +0 -943
  43. data/FINAL_STATUS.md +0 -99
  44. data/MIGRATION_EXAMPLES.md +0 -740
  45. data/PERFORMANCE_OPTIMIZATIONS.md +0 -726
  46. data/REFACTORING_SUMMARY.md +0 -264
  47. data/Rakefile +0 -43
  48. data/TASK_10.2_IMPLEMENTATION_SUMMARY.md +0 -182
  49. data/docs/DUCKDB_SQL_PATTERNS.md +0 -448
  50. data/docs/TASK_12_VERIFICATION_SUMMARY.md +0 -135
  51. data/justfile +0 -50
  52. data/plans/date_arithmetic.md +0 -420
  53. data/plans/engineering/Sequel.md +0 -471
  54. data/plans/engineering/duckdb.md +0 -712
  55. data/plans/engineering/sqlite.md +0 -453
  56. data/plans/mock_connection_bug.md +0 -333
  57. data/plans/mock_without_driver_gem.md +0 -371
  58. data/plans/over_engineering_analysis.md +0 -122
  59. data/plans/schema_management.md +0 -383
  60. data/sig/sequel/duckdb.rbs +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1480a62e0835a027629de3218ef9250fea068a46f9450538de582f4b36c76be
4
- data.tar.gz: 42aed3262df4e475d44b8fc55bcce43c0c141932790480554ef1fc2a6522b086
3
+ metadata.gz: d1a28241665b1678903381a6230815dc1d8bc03b54f0778dfa86ee1042f04edb
4
+ data.tar.gz: a855f1bcac746a4f495ac1d003f015da38afac13f0663675c65d2df704baef66
5
5
  SHA512:
6
- metadata.gz: 48c581cb9f3d5e2fb577ac9737a357eff2ce64210f0225266a4d23bf8f1ae7c5ef2fde581e995281ff941a5f7ba75446134efc2853dc303273ee6dcbe5c16cd9
7
- data.tar.gz: cbe2aaf2eb5d373e18dae14aeafe185331e8d377a06fee03f6147f50f4dc145a33f95c4338250cbd6b9826f64d30c1b3b61a621c468ae93463f50210d5dc7e63
6
+ metadata.gz: c26aef724f16dd8f29b396f2e63338fbcfd72ab9d739614638038e46a41e2ea051dbca9bd6a6cbb2d935d1aec99853651019cc8b803958eedc63c0cc7ccdb984
7
+ data.tar.gz: fa3cc4c38ae41d572095bb09ccd16547519645f935beae228866591180997e7846cbd274817c486bc95d1c5edbbe333ce592e1926322e0366f18020d1db98a8a
data/CHANGELOG.md CHANGED
@@ -5,6 +5,22 @@ 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.1] - 2026-10-02
9
+
10
+ ### Fixed
11
+
12
+ - Point homepage and changelog links at outcomesinsights/sequel-duckdb ([69fa0db](https://github.com/outcomesinsights/sequel-duckdb/commit/69fa0db723f6a579cc5451df450f568452968ce0))
13
+
14
+ ## [0.3.0] - 2026-10-01
15
+
16
+ ### Breaking changes
17
+
18
+ - 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.
19
+
20
+ ### Fixed
21
+
22
+ - Ship only lib/ and three docs; stop tracking the beads key ([c45dfc4](https://github.com/outcomesinsights/sequel-duckdb/commit/c45dfc4636917269f6333da1be2b21ed8855a0c2))
23
+
8
24
  ## [0.2.1](https://github.com/outcomesinsights/sequel-duckdb/compare/v0.2.0...v0.2.1) (2026-10-01)
9
25
 
10
26
  No changes to the gem's behaviour. The first release published by the
@@ -64,12 +64,12 @@ module Sequel
64
64
 
65
65
  @duckdb_database = if database_path == ":memory:" || database_path.nil?
66
66
  ::DuckDB::Database.open(":memory:")
67
- else
67
+ else
68
68
  if database_path.match?(/^[a-zA-Z]/) && !database_path.start_with?(":")
69
69
  database_path = "/#{database_path}"
70
70
  end
71
71
  ::DuckDB::Database.open(database_path)
72
- end
72
+ end
73
73
  rescue ::DuckDB::Error => e
74
74
  raise Sequel::DatabaseConnectionError, "Failed to connect to DuckDB database: #{e.message}"
75
75
  rescue StandardError => e
@@ -123,7 +123,7 @@ module Sequel
123
123
  private
124
124
 
125
125
  def database_error_classes
126
- [::DuckDB::Error]
126
+ [ ::DuckDB::Error ]
127
127
  end
128
128
 
129
129
  def _execute(type, sql, opts, &block)
@@ -56,7 +56,7 @@ module Sequel
56
56
  end
57
57
 
58
58
  # Whether to quote identifiers by default for this database
59
- def quote_identifiers_default # rubocop:disable Naming/PredicateMethod
59
+ def quote_identifiers_default
60
60
  true
61
61
  end
62
62
 
@@ -103,10 +103,10 @@ module Sequel
103
103
  sql = if schema_ref.is_a?(Sequel::SQL::QualifiedIdentifier)
104
104
  "SELECT table_name FROM information_schema.tables " \
105
105
  "WHERE table_catalog = '#{schema_ref.table}' AND table_schema = '#{schema_ref.column}' AND table_type = 'BASE TABLE'"
106
- else
106
+ else
107
107
  "SELECT table_name FROM information_schema.tables " \
108
108
  "WHERE table_schema = '#{schema_ref}' AND table_type = 'BASE TABLE'"
109
- end
109
+ end
110
110
 
111
111
  tables = []
112
112
  execute(sql) do |row|
@@ -171,7 +171,7 @@ module Sequel
171
171
  column_info[:precision] = row[:numeric_precision] if row[:numeric_precision]
172
172
  column_info[:scale] = row[:numeric_scale] if row[:numeric_scale]
173
173
 
174
- columns << [column_name, column_info]
174
+ columns << [ column_name, column_info ]
175
175
  end
176
176
 
177
177
  # Update primary key information
@@ -249,13 +249,13 @@ module Sequel
249
249
 
250
250
  # Format value appropriately for SQL
251
251
  formatted_value = case value
252
- when String
252
+ when String
253
253
  "'#{value.gsub("'", "''")}'" # Escape single quotes
254
- when TrueClass, FalseClass, Numeric
254
+ when TrueClass, FalseClass, Numeric
255
255
  value.to_s
256
- else
256
+ else
257
257
  "'#{value}'"
258
- end
258
+ end
259
259
 
260
260
  # Execute PRAGMA statement
261
261
  pragma_sql = "PRAGMA #{pragma_key} = #{formatted_value}"
@@ -341,10 +341,10 @@ module Sequel
341
341
  sql = if schema_ref.is_a?(Sequel::SQL::QualifiedIdentifier)
342
342
  "SELECT table_name FROM information_schema.tables " \
343
343
  "WHERE table_catalog = '#{schema_ref.table}' AND table_schema = '#{schema_ref.column}' AND table_type = 'VIEW'"
344
- else
344
+ else
345
345
  "SELECT table_name FROM information_schema.tables " \
346
346
  "WHERE table_schema = '#{schema_ref}' AND table_type = 'VIEW'"
347
- end
347
+ end
348
348
 
349
349
  views = []
350
350
  execute(sql) do |row|
@@ -754,13 +754,13 @@ module Sequel
754
754
  read_something_sql(some_paths, options).then do |read_stmt|
755
755
  from(read_stmt)
756
756
  end.sql
757
- elsif source.is_a?(Dataset)
757
+ elsif source.is_a?(Dataset)
758
758
  source.sql
759
- elsif source.is_a?(String)
759
+ elsif source.is_a?(String)
760
760
  source
761
- else
761
+ else
762
762
  raise Sequel::Error, "Unsupported source type: #{source.class}"
763
- end
763
+ end
764
764
 
765
765
  sql = String.new
766
766
  sql << "#{create_view_prefix_sql(name, options)} AS #{source}"
@@ -863,7 +863,7 @@ module Sequel
863
863
  }.freeze
864
864
 
865
865
  # Override select SQL clause order to support VALUES
866
- Dataset.def_sql_method(self, :select, [["if opts[:values]", %w[values compounds order limit]], ["else", %w[with select distinct columns from join where group having compounds order limit lock]]])
866
+ Dataset.def_sql_method(self, :select, [ [ "if opts[:values]", %w[values compounds order limit] ], [ "else", %w[with select distinct columns from join where group having compounds order limit lock] ] ])
867
867
 
868
868
  private
869
869
 
@@ -1123,12 +1123,12 @@ module Sequel
1123
1123
  if value.negative?
1124
1124
  Sequel.lit("INTERVAL (#{value}) #{unit}")
1125
1125
  else
1126
- Sequel.lit(["INTERVAL ", " #{unit}"], value)
1126
+ Sequel.lit([ "INTERVAL ", " #{unit}" ], value)
1127
1127
  end
1128
1128
  else
1129
1129
  # Expression: INTERVAL (column_name) HOUR
1130
1130
  # Note: expressions already include negation from date_sub
1131
- Sequel.lit(["INTERVAL (", ") #{unit}"], value)
1131
+ Sequel.lit([ "INTERVAL (", ") #{unit}" ], value)
1132
1132
  end
1133
1133
  end
1134
1134
  end
@@ -11,6 +11,6 @@ module Sequel
11
11
  # puts Sequel::DuckDB::VERSION
12
12
  #
13
13
  # @since 0.1.0
14
- VERSION = "0.2.1"
14
+ VERSION = "0.3.1"
15
15
  end
16
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.1
4
+ version: 0.3.1
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:
@@ -99,6 +99,20 @@ dependencies:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
101
  version: '1.21'
102
+ - !ruby/object:Gem::Dependency
103
+ name: rubocop-rails-omakase
104
+ requirement: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '1.1'
109
+ type: :development
110
+ prerelease: false
111
+ version_requirements: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.1'
102
116
  - !ruby/object:Gem::Dependency
103
117
  name: rubocop-minitest
104
118
  requirement: !ruby/object:Gem::Requirement
@@ -164,76 +178,23 @@ executables: []
164
178
  extensions: []
165
179
  extra_rdoc_files: []
166
180
  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
181
  - CHANGELOG.md
204
- - FINAL_STATUS.md
205
182
  - LICENSE
206
- - MIGRATION_EXAMPLES.md
207
- - PERFORMANCE_OPTIMIZATIONS.md
208
183
  - 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
184
  - lib/sequel/adapters/duckdb.rb
216
185
  - lib/sequel/adapters/shared/duckdb.rb
217
186
  - lib/sequel/duckdb.rb
218
187
  - lib/sequel/duckdb/helpers/copier.rb
219
188
  - lib/sequel/duckdb/helpers/pathifier.rb
220
189
  - 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
- homepage: https://github.com/sequel/sequel-duckdb
190
+ homepage: https://github.com/outcomesinsights/sequel-duckdb
231
191
  licenses:
232
192
  - MIT
233
193
  metadata:
234
194
  allowed_push_host: https://rubygems.org
235
- homepage_uri: https://github.com/sequel/sequel-duckdb
236
- changelog_uri: https://github.com/sequel/sequel-duckdb/blob/main/CHANGELOG.md
195
+ homepage_uri: https://github.com/outcomesinsights/sequel-duckdb
196
+ source_code_uri: https://github.com/outcomesinsights/sequel-duckdb
197
+ changelog_uri: https://github.com/outcomesinsights/sequel-duckdb/blob/main/CHANGELOG.md
237
198
  rubygems_mfa_required: 'true'
238
199
  rdoc_options: []
239
200
  require_paths:
@@ -242,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
203
  requirements:
243
204
  - - ">="
244
205
  - !ruby/object:Gem::Version
245
- version: 3.2.0
206
+ version: 3.3.0
246
207
  required_rubygems_version: !ruby/object:Gem::Requirement
247
208
  requirements:
248
209
  - - ">="
@@ -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.