FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

execute_batch returns the result of the last statement · Issue #243 · sparklemotion/sqlite3-ruby · GitHub

execute_batch returns the result of the last statement #243

Description

Currently execute_batch always return nil.

  1. Would it be better to return the result of the last statement instead?
  2. 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 [...]?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL