Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9494a65
refactor(expression): reorganize DDL expressions into expression/ddl/…
vistart Apr 13, 2026
625e9d6
Fix postgres enum type formatting compatibility
vistart Apr 13, 2026
4ddb945
fix: register pytest markers to suppress unknown mark warnings
vistart Apr 14, 2026
4b722a9
docs: add comprehensive PostgreSQL function version support info
vistart Apr 14, 2026
558c78f
test: add SQLFunctionSupport tests for PostgreSQL dialect
vistart Apr 14, 2026
264d5fe
chore: remove automatic publish trigger and fix function support check
vistart Apr 14, 2026
b8301a2
feat: add comprehensive PostgreSQL backend examples for expression usage
vistart Apr 14, 2026
9c508fb
fix: correct API usage in PostgreSQL backend examples
vistart Apr 15, 2026
7e5e474
feat: add version support metadata to PostgreSQL examples
vistart Apr 15, 2026
b7e3f8d
fix(postgres): rename MultirangeSupport and EnumTypeSupport to have P…
vistart Apr 16, 2026
aa87141
fix(postgres): add backward compatibility aliases for renamed protocols
vistart Apr 16, 2026
1d871b2
fix(tests): update test references to renamed protocols
vistart Apr 16, 2026
4629cfb
feat(examples): add protocol-specific examples
vistart Apr 16, 2026
6fd06da
feat(examples): add Postgres connection quickstart
vistart Apr 16, 2026
7aea9bf
refactor(examples): rename array_basic to array_postgres84 for versio…
vistart Apr 16, 2026
fdb550c
feat(examples): add connection category metadata for Postgres
vistart Apr 16, 2026
adec0a5
feat(examples): add array_postgres84, cte, window_functions metadata
vistart Apr 16, 2026
850e52d
feat(examples): add Postgres upsert, materialized view examples
vistart Apr 16, 2026
a0df3f8
feat(examples): add Postgres FOR UPDATE transaction example
vistart Apr 16, 2026
0a9ee6b
feat(examples): add Postgres distinct and union examples
vistart Apr 16, 2026
094a06f
feat(examples): add Postgres CREATE VIEW example
vistart Apr 16, 2026
95c3d33
feat(examples): add Postgres single insert, update, drop_table examples
vistart Apr 16, 2026
48546c2
fix(examples): correct CreateViewExpression and SetOperationExpressio…
vistart Apr 16, 2026
9ee16b9
fix(examples): correct PostgreSQL example API usage and convert raw S…
vistart Apr 16, 2026
8bd081c
feat(postgres): add PostgresLockingMixin and replace all raw SQL with…
vistart Apr 16, 2026
b123fd3
feat(examples): add PostgreSQL examples for create_table, basic trans…
vistart Apr 16, 2026
90a106d
fix(postgres): add format_on_conflict_clause override for EXCLUDED an…
vistart Apr 16, 2026
250ff2c
docs(postgres): update create_table example to use current_timestamp …
vistart Apr 17, 2026
ac32bfa
style(postgres): fix E501 line length in example files
vistart Apr 17, 2026
c6d5326
feat(examples): add PostgreSQL examples for DELETE RETURNING, INSERT …
vistart Apr 17, 2026
1110e9a
fix(examples): distinguish gen_random_uuid (PG13+) from uuid_generate…
vistart Apr 17, 2026
ff306e0
feat(examples): add PostgreSQL EXPLAIN Query Plan example
vistart Apr 17, 2026
1b79628
fix(build): exclude __pycache__ from source distribution
vistart Apr 17, 2026
1c029fe
chore: add .DS_Store to gitignore
vistart Apr 17, 2026
898ddfa
fix: exclude .mypy_cache from package data
vistart Apr 17, 2026
fd70dc0
ci: update testsuite to release/v1.0.0.dev11
vistart Apr 17, 2026
e08b2f3
ci: update activerecord to release/v1.0.0.dev24
vistart Apr 17, 2026
4095c8e
chore: add changelog fragment for PR #30
vistart Apr 17, 2026
5ddf5aa
test: add DDL expression and protocol tests for PostgreSQL
vistart Apr 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
name: Python Package Publish

on:
# 当测试工作流成功完成时自动触发发布审批流程
workflow_run:
workflows: ["Python Test and Coverage"]
types:
- completed
branches:
- main

# 手动触发发布工作流
workflow_dispatch:
inputs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:

- name: Install activerecord and testsuite from Git
run: |
pip install git+https://github.com/rhosocial/python-activerecord.git@release/v1.0.0.dev23
pip install git+https://github.com/rhosocial/python-activerecord-testsuite.git@release/v1.0.0.dev10
pip install git+https://github.com/rhosocial/python-activerecord.git@release/v1.0.0.dev24
pip install git+https://github.com/rhosocial/python-activerecord-testsuite.git@release/v1.0.0.dev11

- name: Create postgres scenario config
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ __pycache__/
*.py[cod]
*$py.class

# macOS
.DS_Store

# C extensions
*.so

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
global-exclude *.pyc
global-exclude __pycache__
recursive-exclude * *.pyc
recursive-include src/rhosocial/activerecord/backend/impl/postgres *
recursive-include src/rhosocial/activerecord/backend/impl/postgres *.py *.pyi
include LICENSE
include README.md
1 change: 1 addition & 0 deletions changelog.d/30.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add comprehensive PostgreSQL backend examples covering connection, CRUD, transactions, CTEs, window functions, and more
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"

[project]
name = "rhosocial_activerecord_postgres"
name = "rhosocial-activerecord-postgres"
version = "1.0.0.dev11"
description = "postgres backend implementation for rhosocial-activerecord, providing a robust and optimized postgres database support."
readme = "README.md"
Expand Down Expand Up @@ -71,13 +71,20 @@ Issues = "https://github.com/rhosocial/python-activerecord-postgres/issues"
where = ["src"]
namespaces = true

[tool.setuptools.package-data]
rhosocial = ["**/*.pyi", "**/*.py"]

[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q"
asyncio_mode = "auto"
testpaths = [
"tests",
]
markers = [
"requires_capability: marks tests requiring specific backend capabilities",
"requires_protocol: marks tests requiring specific backend protocol support",
]

[tool.coverage.run]
source = ["rhosocial"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from .transaction import PostgresTransactionManager, AsyncPostgresTransactionManager
from .types import PostgresEnumType
from .explain import PostgresExplainResult, PostgresExplainPlanLine
from .statements import (
from .expression.ddl import (
CreateEnumTypeExpression,
DropEnumTypeExpression,
AlterEnumTypeAddValueExpression,
Expand Down
Loading
Loading