Skip to content

Commit 1d21ff0

Browse files
committed
Renaming
1 parent 51e1c14 commit 1d21ff0

File tree

12 files changed

+136
-98
lines changed

12 files changed

+136
-98
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "psql-rust-engine"
2+
name = "psql-rust-driver"
33
version = "0.1.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77
[lib]
8-
name = "psql_rust_engine"
8+
name = "psql_rust_driver"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ dynamic = ["version"]
1414

1515
[tool.maturin]
1616
python-source = "python"
17-
module-name = "psql_rust_engine._internal"
17+
module-name = "psql_rust_driver._internal"
1818
features = ["pyo3/extension-module"]

python/psql_rust_driver/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from ._internal import PSQLPool, QueryResult
2+
3+
__all__ = [
4+
"PSQLPool",
5+
"QueryResult",
6+
]

python/psql_rust_engine/_internal/__init__.pyi renamed to python/psql_rust_driver/_internal/__init__.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Dict, Optional, Any, List
22

33

4-
class RustEnginePyQueryResult:
4+
class QueryResult:
55
"""Result."""
66

77
def __init__(
@@ -13,7 +13,7 @@ class RustEnginePyQueryResult:
1313
""""""
1414

1515

16-
class PyRustEngine:
16+
class PSQLPool:
1717
"""Aboba"""
1818

1919
def __init__(
@@ -23,6 +23,7 @@ class PyRustEngine:
2323
host: Optional[str],
2424
port: Optional[int],
2525
db_name: Optional[str],
26+
max_db_pool_size: Optional[str],
2627
) -> None:
2728
"""Test ebana."""
2829

@@ -33,7 +34,7 @@ class PyRustEngine:
3334
self,
3435
querystring: str,
3536
parameters: List[Any],
36-
) -> RustEnginePyQueryResult:
37+
) -> QueryResult:
3738
...
3839

3940
async def transaction(self):

python/psql_rust_engine/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)