gda.server_operation
Module for [ServerOperation] class
Types 4
Methods
ServerOperationGidBuilder builder() static nothrowGet builder for [gda.server_operation.ServerOperation] Returns: New builder objectstring opTypeToString(gda.types.ServerOperationType type) static nothrowGet a string version of typegda.server_operation.ServerOperation prepareCreateDatabase(string provider, string dbName = null) staticCreates 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) staticCreates 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) staticThis is just a convenient function to create a #GdaServerOperation to drop a table in an opened connection.gda.types.ServerOperationType stringToOpType(string str) static nothrowPerforms the reverse of [gda.server_operation.ServerOperation.opTypeToString]uint addItemToSequence(string seqPath) nothrowbool delItemFromSequence(string itemPath) nothrowstring getNodeParent(string path) nothrowGet the complete path to the parent of the node defined by pathgda.types.ServerOperationType getOpType() nothrowGet the type of operation op is for Returns: a #GdaServerOperationType enumstring[] getRootNodes() nothrowGet 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) nothrowFetch 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) nothrowuint getSequenceMinSize(string path) nothrowstring getSequenceName(string path) nothrowuint getSequenceSize(string path) nothrowstring getSqlIdentifierAt(gda.connection.Connection cnc, gda.server_provider.ServerProvider prov, string path) nothrowThis 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...bool 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.server_provider.ServerProvider.createOperation], or [gda.server_operation.ServerOperation.prepareCreateDatabase].bool performCreateTable()Performs a prepared #GdaServerOperation to create a table. This could perform an operation created by #gda_server_operation_prepare_create_table or any other using the the #GdaServerOperation API. ...bool performDropDatabase(string provider = null)Destroys an existing database using the specifications in op. op can be obtained using [gda.server_provider.ServerProvider.createOperation], or [gda.server_operation.ServerOperation.prepareDropData...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) nothrowConnect 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) nothrowConnect 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...Fluent builder implementation template for gda.server_operation.ServerOperation
Methods
T connection(gda.connection.Connection propval) nothrowT opType(int propval) nothrowT provider(gda.server_provider.ServerProvider propval) nothrowT specFilename(string propval) nothrowFluent builder for gda.server_operation.ServerOperation
Methods