Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk Copy Options #302

Open
aersam opened this issue Jul 4, 2023 · 0 comments
Open

Bulk Copy Options #302

aersam opened this issue Jul 4, 2023 · 0 comments

Comments

@aersam
Copy link

aersam commented Jul 4, 2023

Hi there!

Thanks for this great library! I use it to write to MS SQL Server using Bulk Insert (here is the code). One thing I'm missing is the options for bulk copy: https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlbulkcopyoptions?view=dotnet-plat-ext-7.0#fields . It seems to be pretty simple to implement, you can add this to the INSERT BULK statement, see C# implementation. Eg it would be something like INSERT BULK ({})({}) WITH (TABLOCK, KEEP_NULLS)

I could also do a PR, tough my rust is not that great yet, just learned it last week :)

aersam added a commit to aersam/tiberius that referenced this issue Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant