execute_batch returns the result of the last statement
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start at the execute_batch entry point and inspect how its current return value and statement inputs are handled. Check for existing execute_batch tests; the work is complete only after the project decides between the proposed return and input semantics and tests cover the selected behavior.
Written by the indexing model from the issue text.
Description
Currently execute_batch always return nil.
- Would it be better to return the result of the last statement instead?
- Would it make sense to accept a list of statements as well? For example:
db.execute_batch [
"PRAGMA empty_result_callbacks=1",
"CREATE TABLE t1(a,b)",
"CREATE INDEX t1i3 ON t1(a,b)",
"INSERT INTO t1 VALUES(1, 2)",
"SELECT * FROM t1",
]
or simply db.execute [...]?
- Dominant language
- Ruby
- Stars
- 845
- Forks
- 220
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sparklemotion/sqlite3-ruby
-
needs-more-info
Difficulty 3/5 1-2 days Newbie friendliness 42/100
sparklemotion/sqlite3-ruby#653 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
sparklemotion/sqlite3-ruby#639 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
sparklemotion/sqlite3-ruby#628 · 10 comments · 1 reaction ·
-
bug help-wanted platform/windows
Difficulty 4/5 3-5 days Newbie friendliness 35/100
sparklemotion/sqlite3-ruby#618 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
sparklemotion/sqlite3-ruby#573 · 2 comments ·
All issues in sparklemotion/sqlite3-ruby
Similar issues
-
security
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
simp/pupmod-simp-stunnel#173 ·
-
Polish QDrantOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
o19s/quepid#1825 · 1 comment ·
Maintainers usually reply within 1 day
-
`judges download` into an existing directory fails with a raw `EISDIR` after locking the durableOpen
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 7 days