python sqlite3 api question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lolmcbride@googlemail.com

    #1

    python sqlite3 api question

    Hi,
    is it possible to pass args through the api which are the same as the
    args you can use on the sqlite3 command line?
    What I'm talking about is the .mode or .output commands which you can
    enter via the sqlite3 cli so I can dynamically change were the output
    goes.
    Ta

  • Fredrik Lundh

    #2
    Re: python sqlite3 api question

    lolmcbride@goog lemail.com wrote:
    [color=blue]
    > is it possible to pass args through the api which are the same as the
    > args you can use on the sqlite3 command line?
    > What I'm talking about is the .mode or .output commands which you can
    > enter via the sqlite3 cli so I can dynamically change were the output
    > goes.[/color]

    sqlite/sqlite3 is an application built on top of the sqlite database engine,
    while Python's pysqlite/sqlite3 library is a binding to the same database
    engine.

    the database never prints anything to anywhere, and neither does Python's
    binding. if you want to print things, you have to print them yourself.

    </F>



    Comment

    • lolmcbride@googlemail.com

      #3
      Re: python sqlite3 api question

      Ah, je comprend. Thanks for pointing that out to me - I'll just have to
      spend more time at the code face to get the job done.
      Many thanks,
      Lol

      Comment

      Working...