Skip to content

Insert N rows #857

Closed
Closed
@cyphysical

Description

@cyphysical

Hello, I am considering using the lib and I've not found how inserting N rows is handled. The query is something like:

insert into <table> (<col1>, <col2>) values (<col1val1>, <col2val2>), ..., (<col1valN>, <col2valN>);

Activity

kyleconroy

kyleconroy commented on Jan 23, 2021

@kyleconroy
Collaborator

Inserting a variable number of rows in current not supported, as it would require dynamically generated SQL. Please see #218 and #216 for previous discussions.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kyleconroy@cyphysical

        Issue actions

          Insert N rows · Issue #857 · sqlc-dev/sqlc