Some Ideas #10
Replies: 2 comments 2 replies
-
|
Hi and thank you for that nice compliment!
SchemaCache has two paths currently, one is for SQLite and the other is for databases that follow the ISO/IEC 9075 standard supported by SQL Server, PostgreSQL, MySQL, MariaDB, and others. I'll add a Firebird code path in that class. In the future we may need to add an
Good call on this, as of right now the connection created by #!sql-connect is being stored internally and not exposed through the variables. What I'm considering for my fixes later is to expose that using the name, for example,
Currently, there are two visual indications that determine if a cell is running. 1) When you click "Run All" the cells are executed in order and an outline is shown on each one executing. 2) When you click on a cell's run icon it will display a continuous progress in the location where the run button is. I'd assume your code must be execution pretty fast, but is there another place you'd suggest that is shown? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I’m using Verso and I’d like to congratulate you for the amazing work. I would like to check a few possible changes with you:
I looked at the source code of the SchemaCache class and, from what I understood, it is limited to SQL Server and SQLite. I was thinking about making modifications to support FirebirdSQL and sending you a PR, but it will end up full of ifs. Could you structure it in a more separated/decoupled way so we can add new database providers without mixing everything together, before I start making these changes?
Depending on the situation, I like using the SQL cell approach, and in other cases I prefer using Dapper. Some options would help me a lot — I’m not sure which one works best for you:
a) expose the internal connection of SQL cells;
b) allow the connection string in SQL cells to accept variables;
c) allow SQL cells to accept a preconfigured DbConnection.
Note: I was having issues with Dapper and dynamic variables, but I found out that you just need to add the Microsoft.CSharp NuGet package.
This is pure nitpicking, but here it goes: in Polyglot, when we executed a cell, it was clear that it was running and when it finished, even if it was very fast. In Verso, we click Run and nothing seems to happen — sometimes I click several times just to be sure it actually executed, both in cells that return nothing and in cells that return something but didn’t visibly change anything.
Thank you very much for your work!
Beta Was this translation helpful? Give feedback.
All reactions