gda.server_operation
Module for [ServerOperation] class
Types 4
Methods
ServerOperation self()Returns `this`, for use in `with` statements.ServerOperationGidBuilder builder()Get builder for [gda.server_operation.ServerOperation] Returns: New builder objectgda.connection.Connection connection() @propertyint opType() @propertygda.server_provider.ServerProvider provider() @propertystring opTypeToString(gda.types.ServerOperationType type)Get a string version of typegda.server_operation.ServerOperation prepareCreateDatabase(string provider, string dbName = null)Creates a new #GdaServerOperation object which contains the specifications required to create a database. Once these specifications provided, use [gda.server_operation.ServerOperation.performCreate...gda.server_operation.ServerOperation prepareDropDatabase(string provider, string dbName = null)Creates a new #GdaServerOperation object which contains the specifications required to drop a database. Once these specifications provided, use [gda.server_operation.ServerOperation.performDropData...gda.server_operation.ServerOperation prepareDropTable(gda.connection.Connection cnc, string tableName)This is just a convenient function to create a #GdaServerOperation to drop a table in an opened connection.gda.types.ServerOperationType stringToOpType(string str)Performs the reverse of [gda.server_operation.ServerOperation.opTypeToString]uint addItemToSequence(string seqPath)bool delItemFromSequence(string itemPath)string getNodeParent(string path)Get the complete path to the parent of the node defined by pathstring getNodePathPortion(string path)Get the last part of pathgda.types.ServerOperationType getOpType()Get the type of operation op is for Returns: a #GdaServerOperationType enumstring[] getRootNodes()Get an array of strings containing the paths of nodes situated at the root of op. Returns: a new array, which must be freed with [glib.global.strfreev].string[] getSequenceItemNames(string path)Fetch the contents of a sequence. path can describe either a sequence (for example "/SEQNAME") or an item in a sequence (for example "/SEQNAME/3")uint getSequenceMaxSize(string path)uint getSequenceMinSize(string path)string getSequenceName(string path)uint getSequenceSize(string path)string getSqlIdentifierAt(gda.connection.Connection cnc, gda.server_provider.ServerProvider prov, string path)This method is similar to [gda.server_operation.ServerOperation.getValueAt], but for SQL identifiers: a new string is returned instead of a #GValue. Also the returned string is assumed to represent...gobject.value.Value getValueAt(string path)Get the value for the node at the path pathbool isValid(string xmlFile = null)Tells if all the required values in op have been defined.bool loadDataFromXml(libxml2.types.NodePtr node)Loads the contents of node into op. The XML tree passed through the node argument must correspond to an XML tree saved using [gda.server_operation.ServerOperation.saveDataToXml].bool performCreateDatabase(string provider = null)Creates a new database using the specifications in op. op can be obtained using [gda.serverprovider.ServerProvider.createOperation], or [gda.serveroperation.ServerOperation.prepareCreateDatabase].bool performCreateTable()Performs a prepared #GdaServerOperation to create a table. This could perform an operation created by #gdaserveroperationpreparecreate_table or any other using the the #GdaServerOperation API. Retu...bool performDropDatabase(string provider = null)Destroys an existing database using the specifications in op. op can be obtained using [gda.serverprovider.ServerProvider.createOperation], or [gda.serveroperation.ServerOperation.prepareDropDataba...bool performDropTable()This is just a convenient function to perform a drop a table operation. Returns: TRUE if the table was dropped Throws: [ServerOperationException]bool setValueAt(string value, string path)Set the value for the node at the path formed using path_format and the ... ellipse (the rules are the same as for [glib.global.strdupPrintf]).gulong connectSequenceItemAdded(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gda.server_operation.ServerOperation)))
&& Parameters!T.length < 4)Connect to `SequenceItemAdded` signal.gulong connectSequenceItemRemove(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gda.server_operation.ServerOperation)))
&& Parameters!T.length < 4)Connect to `SequenceItemRemove` signal.Constructors
this(gda.types.ServerOperationType opType, string xmlFile)IMPORTANT NOTE: Using this funtion is not the recommended way of creating a #GdaServerOperation object, the correct way is to use [gda.server_provider.ServerProvider.createOperation]; this method i...Methods
T connection(gda.connection.Connection propval)T opType(int propval)T provider(gda.server_provider.ServerProvider propval)T specFilename(string propval)Fluent builder for [gda.server_operation.ServerOperation]
Methods