Qore SqlUtil Module Reference 1.8.1
Loading...
Searching...
No Matches
SqlUtil::AbstractView Class Referenceabstract

base class for views More...

#include <SqlUtil.qm.dox.h>

Inheritance diagram for SqlUtil::AbstractView:
[legend]

Public Member Methods

 constructor (string n_name, string n_src)
 creates the object from the arguments
 
abstract string getCreateSql (*hash< auto > opt)
 returns a string that can be used to create the view in the database
 
string getDropSql (*hash< auto > opt)
 returns a string that can be used to drop the view from the database More...
 
abstract softlist< auto > getRenameSql (string new_name, *hash< auto > opt)
 returns a list with command(s) that can be used to rename the view in the database More...
 

Public Attributes

string name
 the name of the sequence
 
string src
 the source code
 
bool updatable
 Flag showing if is the view updatable with DML commands.
 

Detailed Description

base class for views

Member Function Documentation

◆ getDropSql()

string SqlUtil::AbstractView::getDropSql ( *hash< auto >  opt)

returns a string that can be used to drop the view from the database

Parameters
optdrop options (if supported by the driver and object); in this generic base class method, this argument is ignored

◆ getRenameSql()

abstract softlist< auto > SqlUtil::AbstractView::getRenameSql ( string  new_name,
*hash< auto >  opt 
)
pure virtual

returns a list with command(s) that can be used to rename the view in the database

Parameters
new_namethe new name of the object
optdrop options (if supported by the driver and object)