__init__.pyi 884 B

1234567891011121314151617181920212223242526272829
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. def identifier(ident: str) -> str: ...
  10. def literal(value: str) -> str: ...
  11. class Connection:
  12. parameter_statuses: dict[str, str]
  13. def __init__(
  14. self,
  15. host: str = ...,
  16. port: int = ...,
  17. user: str = ...,
  18. database: str | None = ...,
  19. password: str | None = ...,
  20. timeout: int | None = ...,
  21. application_name: str | None = ...,
  22. startup_params: dict[str, str] | None = ...,
  23. ):
  24. pass
  25. def run(self, sql: str) -> None: ...