Giter Site home page Giter Site logo

Comments (7)

mikealfare avatar mikealfare commented on August 16, 2024 2

@myahl You're correct, I should add that to the docs. I also have an outstanding issue (#11) to specify it on the Connection instance. I might actually get to that in the next few weeks.

from bcp.

ari-bradharker avatar ari-bradharker commented on August 16, 2024 1

Hey Eric, I have been able to follow what you and Mike are discussing and am wondering what you mean by "solved by directly adjusting the bcp command line through python"? You are changing the output from the library and then calling the execution?

from bcp.

ericwang321 avatar ericwang321 commented on August 16, 2024 1

Python directly calls the external command /opt/mssql-tools/bin/bcp....

from bcp.

mikealfare avatar mikealfare commented on August 16, 2024

Good catch. The readme is incorrect. DataFile() is expecting a Path object, not a string. I should probably handle that in the class itself and allow a string to be passed in. In the meantime, import pathlib.Path and wrap your file_path in Path().

from bcp.

ericwang321 avatar ericwang321 commented on August 16, 2024

Added path lib, the operation is still wrong, compared to the bcp command line, found that Python BCP originally lacked the database option -d.
currently it is solved by directly adjusting the bcp command line through python.

hope there is time to change the readme. Thank you!

from bcp.

ericwang321 avatar ericwang321 commented on August 16, 2024

close issue temporarily

from bcp.

myahl avatar myahl commented on August 16, 2024

@ericwang321 I don't understand how to specify the database option either.

Added path lib, the operation is still wrong, compared to the bcp command line, found that Python BCP originally lacked the database option -d.
currently it is solved by directly adjusting the bcp command line through python.

This doesn't really clear it up for me.

Python directly calls the external command /opt/mssql-tools/bin/bcp....

What exactly do I need to do in order to specify the database?

Edit: Never mind. I see in the tests that you're specifying it as part of the table name database.schema.table. This could probably be made clearer in the docs though.

from bcp.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.