Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.0.1-beta
    • API
    • None

    Description

      add bulk insert method

      API :

      connection.queryBulk(sql, values) -> Promise

      sql: string | JSON SQL string or JSON object to supersede default connection options. When using JSON object, object must have a "sql" key. For instance, { dateStrings: true, sql: 'SELECT now()' }
      values: array of array, or in case of having one parameter per row, a single array.
      

      Returns a promise that :

      resolves with a JSON object or with an Error.

      For instance, when using an SQL string:

      connection
        .queryBulk("INSERT INTO myTable(col1, col2) values (?, ?)", [[1, 'john'], [2, 'jack']])
        .then(rows => {
      	console.log(rows); 
        })
        .catch(err => {
      	//handle error
        });
      

      Attachments

        Activity

          Transition Time In Source Status Execution Times
          Diego Dupin made transition -
          Open In Progress
          212d 3h 14m 1
          Diego Dupin made transition -
          Closed Stalled
          13d 3h 56m 1
          Diego Dupin made transition -
          In Progress Stalled
          5d 23h 21m 1
          Diego Dupin made transition -
          Stalled In Progress
          1d 19h 25m 2
          Diego Dupin made transition -
          In Progress Closed
          13d 19h 26m 2

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.