flamerobin icon indicating copy to clipboard operation
flamerobin copied to clipboard

[FEATURE REQUEST] Possibility to shut down the database and start it up again.

Open nLeonardt95 opened this issue 3 years ago • 7 comments

Possibility to shut down the database and start it up again.

https://firebirdsql.org/rlsnotesh/rnfb20x-util-gfix.html#rnfb20x-util-gfix-shut

nLeonardt95 avatar Jun 18 '21 09:06 nLeonardt95

IBPP already has this features, it's just a question of building a interface for Flamerobin https://github.com/mariuz/flamerobin/blob/fa4e3d5f31f4b9f4d13d9bb0905821a3e15c368c/src/ibpp/service.cpp#L446-L476

I'd put the menu here, with 2 distinct menus for Database Shutdown and Database Online: image

What do you think?

arvanus avatar Jun 19 '21 02:06 arvanus

that's exactly how I imagined it too

nLeonardt95 avatar Jun 19 '21 05:06 nLeonardt95

IBPP already has this features, it's just a question of building a interface for Flamerobin https://github.com/mariuz/flamerobin/blob/fa4e3d5f31f4b9f4d13d9bb0905821a3e15c368c/src/ibpp/service.cpp#L446-L476

I'd put the menu here, with 2 distinct menus for Database Shutdown and Database Online: image

What do you tkink?

it's fine, but include gfix -online too

Jdochoa avatar Jun 19 '21 14:06 Jdochoa

Hi @arvanus and @Jdochoa

Is it also possible to add in this Tools menu an option to extract the Database metadata (DDL.SQL file) using the following isql command?

isql.exe -user SYSDBA -password masterkey -extract -output "DDL.SQL" LOCALHOST:"TEST_DB"

Thanks in advance, Luciano

luronumen avatar Jun 20 '21 11:06 luronumen

Hi @arvanus and @Jdochoa

Is it also possible to add in this Tools menu an option to extract the Database metadata (DDL.SQL file) using the following isql command?

isql.exe -user SYSDBA -password masterkey -extract -output "DDL.SQL" LOCALHOST:"TEST_DB"

Thanks in advance, Luciano

Isn't what already exists in the database property, DDL tab? image

arvanus avatar Jun 20 '21 12:06 arvanus

Hi @arvanus

There is but the sequence that the instructions are shown on this page doesn't always work for the database re-creation because it doesn't perfectly consider the dependencies between the objects. The best solution would be for this page to show the DDL extracted using isql instead of the instructions extracted by FlameRobin. What do you think? Is it possible to refresh this page to show the DDL statement extracted via isql?

luronumen avatar Jun 20 '21 13:06 luronumen

Hi @arvanus

There is but the sequence that the instructions are shown on this page doesn't always work for the database re-creation because it doesn't perfectly consider the dependencies between the objects. The best solution would be for this page to show the DDL extracted using isql instead of the instructions extracted by FlameRobin. What do you think? Is it possible to refresh this page to show the DDL statement extracted via isql?

Not possible that I know, but I know nothing 😄 iSQL is simply a client do Fb, like gbak is a simple client too Also, even isql has this problem: https://github.com/FirebirdSQL/firebird/issues/6862 This DDL fail to replicate:

create view v_test as select 1 as x from rdb$database;
create procedure sp_test(a_x type of column v_test.x) as begin end;
commit;

Please, create a new issue referring this problem

arvanus avatar Jun 21 '21 18:06 arvanus

when can we except the next release version?

nLeonardt95 avatar Sep 27 '22 07:09 nLeonardt95