tabsdata.MSSQLSource#
- class MSSQLSource(
- connection_string: str,
- query: str | list[str],
- chunk_size: int = 50000,
- credentials: dict | UserPasswordCredentials | None = None,
- server: str | Secret = None,
- database: str | Secret = None,
- driver: str | Secret = None,
- initial_values: dict | None = None,
- **kwargs,
Bases:
SourcePluginSource plugin for Microsoft SQL Server.
- __init__(
- connection_string: str,
- query: str | list[str],
- chunk_size: int = 50000,
- credentials: dict | UserPasswordCredentials | None = None,
- server: str | Secret = None,
- database: str | Secret = None,
- driver: str | Secret = None,
- initial_values: dict | None = None,
- **kwargs,
Initialize the MSSQLSource with a connection string and a query.
Methods
__init__(connection_string, query[, ...])Initialize the MSSQLSource with a connection string and a query.
chunk(working_dir)Execute the query and yield chunks of data.
stream(working_dir)Attributes
connection_stringGet the connection string for the database.
credentialsThe credentials required to access Microsoft SQL Server.
initial_valuesThe initial values for the parameters in the SQL queries.
queryGet the SQL query or queries to execute.