Skip to content

Commit 5805b7b

Browse files
committed
Revert "chore: update readme head"
This reverts commit 30f034e.
1 parent 30f034e commit 5805b7b

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

README.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# Py-PGlite
22

3-
<div style="display: flex; align-items: flex-start;">
4-
<div style="flex: 0 0 auto; margin-right: 18px;">
5-
<img src="https://github.com/user-attachments/assets/3c6ef886-5075-4d82-a180-a6b1dafe792b" alt="py-pglite Logo" width="160" style="border-radius: 8px;"/>
6-
</div>
7-
<div style="flex: 1;">
8-
<p><strong>Instant PostgreSQL for Python testing</strong> ⚡</p>
9-
<p><code>pip install py-pglite</code></p>
10-
<pre><code class="language-python">def test_users(pglite_session):
3+
<img src="https://github.com/user-attachments/assets/3c6ef886-5075-4d82-a180-a6b1dafe792b" alt="py-pglite Logo" width="60" align="left" style="margin-right: 16px;"/>
4+
5+
**Instant PostgreSQL for Python testing**
6+
7+
`pip install py-pglite`
8+
9+
<br clear="all"/>
10+
11+
```python
12+
def test_users(pglite_session):
1113
user = User(name="Alice")
1214
pglite_session.add(user)
1315
pglite_session.commit()
14-
assert user.id == 1 # It's real PostgreSQL!</code></pre>
15-
<p><strong>That's it.</strong> No Docker, no setup, no config files. Real PostgreSQL, instant testing.</p>
16-
</div>
17-
</div>
16+
assert user.id == 1 # It's real PostgreSQL!
17+
```
1818

19-
<br clear="all"/>
19+
**That's it.** No Docker, no setup, no config files. Real PostgreSQL, instant testing.
2020

2121
[![CI](https://github.com/wey-gu/py-pglite/actions/workflows/ci.yml/badge.svg)](https://github.com/wey-gu/py-pglite/actions/workflows/ci.yml) [![PyPI](https://badge.fury.io/py/py-pglite.svg)](https://badge.fury.io/py/py-pglite) [![Python](https://img.shields.io/pypi/pyversions/py-pglite.svg)](https://pypi.org/project/py-pglite/)
2222

@@ -254,25 +254,21 @@ pytest tests/django/ # Auto-isolated
254254
---
255255

256256
<<<<<<< HEAD
257-
258257
# Custom configuration
259-
260258
config = PGliteConfig(
261259
timeout=30,
262260
cleanup_on_exit=True,
263261
log_level="DEBUG"
264262
)
265263

266264
# Manual management
267-
268265
with PGliteManager(config) as manager:
269266
engine = manager.get_engine()
270267
SQLModel.metadata.create_all(engine)
271-
268+
272269
with Session(engine) as session:
273270
# Your database operations here
274271
pass
275-
276272
```
277273
278274
## 🔧 Features
@@ -478,7 +474,6 @@ def test_with_custom_cleanup(pglite_engine):
478474
# Custom cleanup if needed
479475
utils.clean_database_data(pglite_engine)
480476
```
481-
482477
=======
483478
*py-pglite: Because testing should be simple.*
484479
>>>>>>> 7555fb5 (feat & refactor: decouple sqlalchemy, introduce django & pytest-django)

0 commit comments

Comments
 (0)