Re: [dabo-users] classDesigner Data Connection not working

Author: Ed Leafe

Posted: 2011-06-04 at 12:39:39

On Jun 4, 2011, at 12:33 PM, bob k. wrote:

> C:\Photography\Software\dabo>c:\python27\python

> Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]

> on

> win32

> Type "help", "copyright", "credits" or "license" for more information.

>>>> import sqlite3

>>>> cn = sqlite3.connect("rakPhoto.sqlite")

>>>> crs = cn.cursor()

>>>> crs.execute("select * from sqlite_master")

> <sqlite3.Cursor object at 0x01802420>

>>>> crs.fetchall()

> []

>>>>

So was the 'rakPhoto.sqlite' database file in the current directory? If not, SQLite will create the database, which would show up as empty, as your last line does.

-- Ed Leafe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/86A71697-52CF-4063-BA5D-D6C014486661@leafe.com

©2011 Ed Leafe