Re: Autosave in the SQL Editor - Mailing list pgadmin-hackers

From Vinicius Santos
Subject Re: Autosave in the SQL Editor
Date
Msg-id CAOTD_5GHhR+urcoLCA8mqfuUQRBaddaHUCu3at1OPnXd3jGAEg@mail.gmail.com
Whole thread Raw
In response to Re: Autosave in the SQL Editor  (Guillaume Lelarge <guillaume@lelarge.info>)
Responses Re: Autosave in the SQL Editor  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgadmin-hackers

Where is it saved?

You also need to have a way to delete those files.

I thought to create a specific directory for it.
 
Yeah, I think the informations should be available in the file (for
example if your database has a _ in its name, it will be hard to decode
the informations from the filename.
 
It's true!
I'll put the informations in the file header.

Should be enough. Not sure how you'll open that many query tools though.

I'm scanning the files with extension .pga.

If the file belongs to the current database and current user, we will open it.

I'll try on Ubuntu. Soon, I will send a preview of the patch.

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: SSH Tunneling implementation
Next
From: Guillaume Lelarge
Date:
Subject: pgAdmin website commit: Update website's french translation