Book a Demo

Author Topic: qea/qeax file format  (Read 1837 times)

avanzwol

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
qea/qeax file format
« on: May 27, 2026, 12:02:34 am »
I discovered lately that since the introduction of qea files, someone at EA got to the luminous idea to write the qea filename into the repository.ConnectionString variable. Since my addin does a check on the connection string, I'm dragged into a new problem. I have to check the repository.ConnectionString if it is a real connectionstring or if it is a qea-filename. And if it is a (qea) filename, I have to parse the content of the qea file to get the connectionstring. But if I want to properly parse the qea file, then I need to know what the exact format is. I do not want my users will be confronted with another exception again, because I misinterpret the file. I haven't been able to find the definition of this qea file yet.

Of course I know the qea file is human readable and the first line looks like a connectionstring. But does a qea file ALWAYS look like this?

Can someone tell me where I can find the definition of the qea file format? Or is there already a qea-file parser in the EA library?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8108
  • Karma: +119/-20
    • View Profile
Re: qea/qeax file format
« Reply #1 on: May 27, 2026, 08:32:07 am »
I discovered lately that since the introduction of qea files, someone at EA got to the luminous idea to write the qea filename into the repository.ConnectionString variable.
From what I can see it has always returned the path to the file.

Since my addin does a check on the connection string, I'm dragged into a new problem. I have to check the repository.ConnectionString if it is a real connectionstring or if it is a qea-filename. And if it is a (qea) filename, I have to parse the content of the qea file to get the connectionstring. But if I want to properly parse the qea file, then I need to know what the exact format is. I do not want my users will be confronted with another exception again, because I misinterpret the file. I haven't been able to find the definition of this qea file yet.

Of course I know the qea file is human readable and the first line looks like a connectionstring. But does a qea file ALWAYS look like this?
Oh, you're using a shortcut file. In that case the API behavior you're describing has been that way since version 7.

Can someone tell me where I can find the definition of the qea file format? Or is there already a qea-file parser in the EA library?
Read the first few bytes of the file. If it's a model it will start with the ASCII "SQLite format 3". If it's not that it will be the referenced human readable connection string.
« Last Edit: May 28, 2026, 08:34:44 am by Eve »