pyadomd package

pyadomd module

Copyright 2020 SCOUT

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class pyadomd.pyadomd.Cursor(connection: <sphinx.ext.autodoc.importer._MockObject object at 0x7f372b5e5350>)[source]

Bases: object

close() → None[source]

Closes the cursor

description
execute(query: str) → pyadomd.pyadomd.Cursor[source]

Executes a query against the data source

Params [query]:The query to be executed
executeNonQuery(command: str) → pyadomd.pyadomd.Cursor[source]

Executes a Analysis Services Command agains the database

Params [command]:
 The command to be executed
fetchall() → List[Tuple[T, ...]][source]

Fetches all the rows from the last executed query

fetchmany(size=1) → List[Tuple[T, ...]][source]

Fetches one or more lines from the last executed query

Params [size]:The number of rows to fetch. If the size parameter exceeds the number of rows returned from the last executed query then fetchmany will return all rows from that query.
fetchone() → Iterator[Tuple[T, ...]][source]

Fetches the current line from the last executed query

is_closed
class pyadomd.pyadomd.Description[source]

Bases: tuple

Parameters:
  • [name] – Column name
  • [type_code] – The column data type
name

Alias for field number 0

type_code

Alias for field number 1

class pyadomd.pyadomd.Pyadomd(conn_str: str)[source]

Bases: object

close() → None[source]

Closes the connection

cursor() → pyadomd.pyadomd.Cursor[source]

Creates a cursor object

open() → None[source]

Opens the connection

state

1 = Open 0 = Closed

Module contents