Add missing docs to ->set, for which params are allowed in the object/db.
Add missing allowMacroAccess to default dbLink. Add several tests for create, get, delete, etc.
This commit is contained in:
parent
86d9fc6860
commit
8261c896a6
2 changed files with 110 additions and 7 deletions
|
|
@ -330,9 +330,10 @@ sub new {
|
|||
identifier=>$session->config->get("dbpass"),
|
||||
title=>"WebGUI Database",
|
||||
allowedKeywords=>"select\ndescribe\ndesc\nshow\ncall",
|
||||
allowMacroAccess=>0,
|
||||
);
|
||||
} else {
|
||||
%databaseLink = $session->db->quickHash("select * from databaseLink where databaseLinkId=".$session->db->quote($databaseLinkId));
|
||||
%databaseLink = $session->db->quickHash("select * from databaseLink where databaseLinkId=?",[$databaseLinkId]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -407,6 +408,15 @@ The password to connect to the database with.
|
|||
|
||||
A text label to identify this database to humans in the UI.
|
||||
|
||||
=head4 allowedKeywords
|
||||
|
||||
A whitespace delimited of keywords that a query may start with. Checked in
|
||||
queryIsAllowed.
|
||||
|
||||
=head4 allowMacroAccess
|
||||
|
||||
A boolean that indicates whether macros are allowed to access this DatabaseLink.
|
||||
|
||||
=cut
|
||||
|
||||
sub set {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue