mariuz / flamerobin

FlameRobin is a database administration tool for Firebird RDBMS. Our goal is to build a tool that is: lightweight (small footprint, fast execution) cross-platform (Linux, Windows, Mac OS X, FreeBSD) dependent only on other Open Source software
http://flamerobin.org
MIT License
216 stars 66 forks source link

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

Closed nLeonardt95 closed 1 year ago

nLeonardt95 commented 3 years ago

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

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

arvanus commented 3 years ago

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?

nLeonardt95 commented 3 years ago

that's exactly how I imagined it too

Jdochoa commented 3 years ago

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

luronumen commented 3 years ago

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:"TESTDB"

Thanks in advance, Luciano

arvanus commented 3 years ago

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:"TESTDB"

Thanks in advance, Luciano

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

luronumen commented 3 years ago

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?

arvanus commented 3 years ago

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

nLeonardt95 commented 2 years ago

when can we except the next release version?