On 7/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> On Jul 20, 3:35 am, "Gaetan de Menten" <[EMAIL PROTECTED]> wrote:
> > Seems like you are missing a flush here. Try adding
> > "objectstore.flush()" at the end of process_and_populate. Otherwise,
> > you might want to turn echo on for debugging: metadata.engine.echo =
> > True.
>
> It seems to be generating some SQL, but since I am new to all this, I
> don't know what really is the problem.
>
> I've uploaded two files: model.py and test.py. Put them together in
> the same directory and run python test.py. Ideally it would generate a
> local SQLite file called test.sqlite, but in my computer at least,
> nothing happens.
>
> I am running elixir 0.3.0 in case you are wondering.
>
> Thanks!

Hi.

First, you are missing the objectstore.flush() call, as Gaetan noticed.

BUT, even with that it won't work. You are also missing the third
slash in your SQLite address. It should be "sqlite:///name.db".
Addresses are RFC-1738 style URLs. See
http://www.sqlalchemy.org/docs/dbengine.html#dbengine_establishing

Shouldn't something (maybe sqlite bindings or sqlalchemy itself) raise
an Exception for that string?

-- 
Best regards
Leandro Lameiro

Blog: http://lameiro.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to