Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6920639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:10:24+00:00 2026-05-27T10:10:24+00:00

Since BerkeleyDB can use the SQLite api, can python use sqlite module to connect

  • 0

Since BerkeleyDB can use the SQLite api, can python use sqlite module to connect to BerkeleyDB.

This post suggests using something else, but could have been written pre-Api sync.
Best Python module for Berkeley DB?

Can get a simple connection string. If there known problem, PLEASE post. I am exploring this topic.

Using python 2.7 on linux and windows.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:10:25+00:00Added an answer on May 27, 2026 at 10:10 am

    As suggested here https://forums.oracle.com/forums/thread.jspa?threadID=2302793
    I’ve tried on linux x86_64 with python27, here the steps to make a static version since
    I doubt your distribution has bdb sqlite api.

    Download db-5.2.36.tar.gz

    tar xzvf db-5.2.36.tar.gz
    cd db-5.2.36/build_unix/
    CFLAGS="-fPIC" ../dist/configure --enable-static --disable-shared --enable-sql-compat
    # you need -fPIC to build the python ext of pysqlite
    make
    make prefix=/tmp/bdb install
    

    get a copy of pysqlite2 from http://code.google.com/p/pysqlite/, I’ve used an hg checkout.
    In setup.cfg add in build_ext section (there are yet two commented lines you can reuse them)

    include_dirs=/tmp/bdb/include
    library_dirs=/tmp/bdb/lib
    

    then cd in pysqlite:

    python setup.py build
    python setup.py install
    

    or without installing:

    cd build/lib.linux-x86_64-2.7
    python
    from pysqlite2 import dbapi2
    conn = dbapi2.connect('test.db')
    c = conn.cursor()
    c.execute('bla bla bla sql')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since I'm using Java 1.4.2, this means that I cannot use Java's implementation of
since last post, did all the changes suggested but this problem still haunts me.
Good news! Since version 4.8 BerkeleyDB has c# interface. BerkeleyDB is a quite interesting
Since the keyboard is the interface we use to the computer, I've always thought
Since I started this new webshop for a friend to launch, which still in
Since the retina display, suddenly this piece of drawing code seems to not work
Since Java char is 16 bit long, I am wondering how can it represent
Since I started using Fireworks CS5.1, and it doesn't matter how I write the
Since C+++ allows function overloading, can we overload main() ? For example, int main(const
since they have same rendering engine, this problem shows in both. it works great

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.