Top | ![]() |
![]() |
![]() |
![]() |
GdaDbView * | gda_db_view_new () |
const gchar * | gda_db_view_get_defstring () |
void | gda_db_view_set_defstring () |
gboolean | gda_db_view_get_ifnoexist () |
void | gda_db_view_set_ifnoexist () |
gboolean | gda_db_view_get_istemp () |
void | gda_db_view_set_istemp () |
gboolean | gda_db_view_get_replace () |
void | gda_db_view_set_replace () |
gboolean | gda_db_view_prepare_create () |
This object represents a view of a database. The view can be constracted manually using API or generated from xml file together with other databse objects. See GdaDbCatalog. GdaDbView implements GdaDbBuildable interface for parsing xml file. This is typical example how GdaDbView can be used
1 2 3 4 5 6 7 8 9 |
GdaDbView *myview = gda_db_view_new (); gda_db_base_set_name (GDA_DB_BASE (myview), "MyView"); gda_db_view_set_istemp (myview, FALSE); gda_db_view_set_defstring (myview, "SELECT name, project_id FROM NewEmployee"); res = gda_db_view_create (myview, fixture->cnc, TRUE, &error); if (!res) GDA_PGSQL_ERROR_HANDLE (error); |
const gchar *
gda_db_view_get_defstring (GdaDbView *self
);
Since: 6.0
Stability Level: Stable
void gda_db_view_set_defstring (GdaDbView *self
,const gchar *str
);
Since: 6.0
Stability Level: Stable
gboolean
gda_db_view_get_ifnoexist (GdaDbView *self
);
Since: 6.0
Stability Level: Stable
void gda_db_view_set_ifnoexist (GdaDbView *self
,gboolean noexist
);
Since: 6.0
Stability Level: Stable
gboolean
gda_db_view_get_istemp (GdaDbView *self
);
Since: 6.0
Stability Level: Stable
void gda_db_view_set_istemp (GdaDbView *self
,gboolean temp
);
Since: 6.0
Stability Level: Stable
gboolean
gda_db_view_get_replace (GdaDbView *self
);
Since: 6.0
Stability Level: Stable
void gda_db_view_set_replace (GdaDbView *self
,gboolean replace
);
Since: 6.0
Stability Level: Stable
gboolean gda_db_view_prepare_create (GdaDbView *self
,GdaServerOperation *op
,GError **error
);
Populate op
with information needed to perform CREATE_VIEW operation. This method was desgned
for internal use and will be obsolete in the future. Do not use it for the new code.
self |
a GdaDbView instance |
|
op |
GdaServerOperation instance to populate |
|
error |
error container |
Stability Level: Stable
“defstring”
property “defstring” char *
Define view.
Owner: GdaDbView
Flags: Read / Write
Default value: NULL
“ifnoexist”
property“ifnoexist” gboolean
Create view if it doesn't exist.
Owner: GdaDbView
Flags: Read / Write
Default value: FALSE
“istemp”
property“istemp” gboolean
Set if view is temp.
Owner: GdaDbView
Flags: Read / Write
Default value: FALSE
“replace”
property“replace” gboolean
Set if view should be repalced.
Owner: GdaDbView
Flags: Read / Write
Default value: TRUE