wsql_sdk package

Submodules

wsql_sdk.codegen module

This file is part of WSQL-SDK

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

class wsql_sdk.codegen.Argument(argument)[source]

Bases: object

The procedure argument description

class wsql_sdk.codegen.Builder(syntax)[source]

Bases: object

create_api_output(path, module)[source]

open new file to write procedures

create_exceptions_output(path)[source]

open a new file to write exceptions

static validate(procedure)[source]

validate procedure description

write(text, eol='\n')[source]

write text to output stream

write_doc_string(procedure)[source]

write doc string

write_exception(exception)[source]

write the exception class

write_procedure(procedure)[source]

handle the procedure body

write_returns(returns, mod)[source]

return formatted return value

class wsql_sdk.codegen.Procedure(module, name, proc, read_only, errors)[source]

Bases: object

The procedure description

fullname
class wsql_sdk.codegen.TempTable(temptable)[source]

Bases: object

The temporary table description

wsql_sdk.codegen.create_builder(name)[source]

load builder by syntax

wsql_sdk.codegen.load_input(source)[source]

load the input

wsql_sdk.codegen.main(argv=None)[source]
wsql_sdk.codegen.parse_arguments(argv=None)[source]
wsql_sdk.codegen.process(args)[source]

generate code according to specified parameters

wsql_sdk.translator module

This file is part of WSQL-SDK

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

class wsql_sdk.translator.Translator(output, close_output=False)[source]

Bases: wsql_sdk._interpreter.MacrosTokenizer

compile(filename)[source]
include_file(filename)[source]
nop(text)[source]
on_function(ast, body, args)[source]
on_include(filename)[source]
on_variable(name, value)[source]
wsql_sdk.translator.main(argv=None)[source]
wsql_sdk.translator.parse_arguments(argv=None)[source]

Module contents

This file is part of WSQL-SDK

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.