Skip to content

Commit baafd09

Browse files
committed
Changed name of the lib to psqlpy
1 parent a28f616 commit baafd09

File tree

13 files changed

+25
-29
lines changed

13 files changed

+25
-29
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-driver"
2+
name = "psqlpy"
33
version = "0.0.5"
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_driver"
8+
name = "psqlpy"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ import uuid
309309

310310
from rust_psql_driver import PSQLPool
311311

312-
from psql_rust_driver.extra_types import (
312+
from psqlpy.extra_types import (
313313
SmallInt,
314314
Integer,
315315
BigInt,

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["maturin>=1.4,<2.0"]
33
build-backend = "maturin"
44

55
[project]
6-
name = "psql-rust-driver"
6+
name = "psqlpy"
77
requires-python = ">=3.8"
88
classifiers = [
99
"Programming Language :: Rust",
@@ -14,5 +14,5 @@ dynamic = ["version"]
1414

1515
[tool.maturin]
1616
python-source = "python"
17-
module-name = "psql_rust_driver._internal"
17+
module-name = "psqlpy._internal"
1818
features = ["pyo3/extension-module"]
File renamed without changes.

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Transaction:
9292
```python
9393
import asyncio
9494
95-
from psql_rust_driver import PSQLPool, QueryResult
95+
from psqlpy import PSQLPool, QueryResult
9696
9797
9898
async def main() -> None:
@@ -113,7 +113,7 @@ class Transaction:
113113
114114
async def main() -> None:
115115
db_pool = PSQLPool()
116-
await psql_rust_driver.startup()
116+
await psqlpy.startup()
117117
118118
transaction = await db_pool.transaction()
119119
async with transaction:
@@ -142,7 +142,7 @@ class Transaction:
142142
```python
143143
import asyncio
144144
145-
from psql_rust_driver import PSQLPool, QueryResult
145+
from psqlpy import PSQLPool, QueryResult
146146
147147
148148
async def main() -> None:
@@ -167,7 +167,7 @@ class Transaction:
167167
```python
168168
import asyncio
169169
170-
from psql_rust_driver import PSQLPool, QueryResult
170+
from psqlpy import PSQLPool, QueryResult
171171
172172
173173
async def main() -> None:
@@ -193,7 +193,7 @@ class Transaction:
193193
```python
194194
import asyncio
195195
196-
from psql_rust_driver import PSQLPool, QueryResult
196+
from psqlpy import PSQLPool, QueryResult
197197
198198
199199
async def main() -> None:
@@ -221,7 +221,7 @@ class Transaction:
221221
```python
222222
import asyncio
223223
224-
from psql_rust_driver import PSQLPool, QueryResult
224+
from psqlpy import PSQLPool, QueryResult
225225
226226
227227
async def main() -> None:
@@ -257,7 +257,7 @@ class Transaction:
257257
```python
258258
import asyncio
259259
260-
from psql_rust_driver import PSQLPool, QueryResult
260+
from psqlpy import PSQLPool, QueryResult
261261
262262
263263
async def main() -> None:
@@ -307,7 +307,7 @@ class Connection:
307307
```python
308308
import asyncio
309309
310-
from psql_rust_driver import PSQLPool, QueryResult
310+
from psqlpy import PSQLPool, QueryResult
311311
312312
313313
async def main() -> None:
@@ -394,13 +394,13 @@ class PSQLPool:
394394
```python
395395
import asyncio
396396
397-
from psql_rust_driver import PSQLPool, QueryResult
397+
from psqlpy import PSQLPool, QueryResult
398398
399399
400400
async def main() -> None:
401401
db_pool = PSQLPool()
402-
await psql_rust_driver.startup()
403-
query_result: QueryResult = await psql_rust_driver.execute(
402+
await psqlpy.startup()
403+
query_result: QueryResult = await psqlpy.execute(
404404
"SELECT username FROM users WHERE id = $1",
405405
[100],
406406
)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)