Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[profile.dev]
fail-fast = true
test-threads = 1
default-filter = "not package(rust)"
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
debug/
target/

# IDEs
.vscode/

# These are backup files generated by rustfmt
**/*.rs.bk

Expand Down Expand Up @@ -54,3 +57,9 @@ pgdog-plugin/src/bindings.rs
local/
integration/log.txt
.pycache

# Ignore test internal files
integration/pgdog.config
integration/**/.bundle
integration/**/vendor
integration/**/*.test
11 changes: 6 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ Contributions are welcome. If you see a bug, feel free to submit a PR with a fix

1. Run cargo build in the project directory.
2. Install Postgres (all Pg versions supported).
3. Some tests used prepared transactions. Enable them with `ALTER SYSTEM SET max_prepared_transactions TO 1000` and restart Postgres.
4. Run the setup script `bash integration/setup.sh`.
5. Launch pgdog configured for integration: `bash integration/dev-server.sh`.
6. Run the tests `cargo nextest run --test-threads=1`. If a test fails, try running it directly.
3. Add user `pgdog` with password `pgdog`.
4. Some tests used prepared transactions. Enable them with `ALTER SYSTEM SET max_prepared_transactions TO 1000;` sql command and restart Postgres.
5. Run the setup script `bash integration/setup.sh`.
6. Run the tests `cargo nextest run --profile dev`. If a test fails, try running it directly.
7. Run the integration tests `bash integration/run.sh` or exact integration test with `bash integration/go/run.sh`.

## Coding

1. Please format your code with `cargo fmt`.
2. If you're feeeling generous, `cargo clippy` as well.
2. If you're feeling generous, `cargo clippy` as well.
3. Please write and include tests. This is production software used in one of the most important areas of the stack.
73 changes: 8 additions & 65 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
members = [
"examples/demo",
"integration/rust",
"pgdog", "pgdog-config", "pgdog-macros",
"pgdog-plugin", "pgdog-plugin-build", "pgdog-postgres-types", "pgdog-stats", "pgdog-vector", "plugins/pgdog-example-plugin",
"pgdog",
"pgdog-config",
"pgdog-macros",
"pgdog-plugin",
"pgdog-postgres-types",
"pgdog-stats",
"pgdog-vector",
"plugins/pgdog-example-plugin",
]
resolver = "2"

Expand All @@ -23,3 +29,6 @@ inherits = "release"
lto = false
codegen-units = 16
debug = true

[workspace.dependencies]
pgdog-plugin = { path = "./pgdog-plugin", version = "0.2.0" }
Loading
Loading