refacto: morbac_pg -> pg_morbac
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# morbac_pg
|
||||
# pg_morbac
|
||||
|
||||
**Multi-Organization Based Access Control for PostgreSQL**
|
||||
|
||||
@@ -34,15 +34,15 @@ A PostgreSQL extension implementing the Multi-OrBAC access control model - enabl
|
||||
|
||||
```bash
|
||||
# Clone repository
|
||||
git clone https://github.com/yourusername/morbac_pg.git
|
||||
cd morbac_pg
|
||||
git clone https://github.com/yourusername/pg_morbac.git
|
||||
cd pg_morbac
|
||||
|
||||
# Build and install extension
|
||||
make build # Build versioned file from src/
|
||||
sudo make install # Install to PostgreSQL
|
||||
|
||||
# Enable in your database
|
||||
psql -d mydb -c "CREATE EXTENSION morbac_pg;"
|
||||
psql -d mydb -c "CREATE EXTENSION pg_morbac;"
|
||||
```
|
||||
|
||||
### Alternative: Using install script
|
||||
@@ -59,14 +59,14 @@ sudo ./tools/install.sh
|
||||
|
||||
```bash
|
||||
# Build versioned file from source
|
||||
make build # Concatenates src/ files into morbac_pg--1.0.0.sql
|
||||
make build # Concatenates src/ files into pg_morbac--1.0.0.sql
|
||||
|
||||
# Copy files to PostgreSQL extension directory
|
||||
sudo cp morbac_pg.control $(pg_config --sharedir)/extension/
|
||||
sudo cp morbac_pg--1.0.0.sql $(pg_config --sharedir)/extension/
|
||||
sudo cp pg_morbac.control $(pg_config --sharedir)/extension/
|
||||
sudo cp pg_morbac--1.0.0.sql $(pg_config --sharedir)/extension/
|
||||
|
||||
# Enable in PostgreSQL
|
||||
psql -d mydb -c "CREATE EXTENSION morbac_pg;"
|
||||
psql -d mydb -c "CREATE EXTENSION pg_morbac;"
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
@@ -170,13 +170,13 @@ LIMIT 10;
|
||||
# Development workflow
|
||||
# 1. Edit source files in src/ directory
|
||||
# 2. Build and test
|
||||
make build # Build versioned morbac_pg--X.Y.Z.sql from src/
|
||||
make build # Build versioned pg_morbac--X.Y.Z.sql from src/
|
||||
make test # Build and run test suite
|
||||
|
||||
# Manual testing
|
||||
make build
|
||||
createdb morbac_test
|
||||
psql -d morbac_test -f morbac_pg.sql
|
||||
psql -d morbac_test -f pg_morbac.sql
|
||||
# ... test manually ...
|
||||
dropdb morbac_test
|
||||
```
|
||||
@@ -219,8 +219,8 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
||||
See [CONTRIBUTING.md](docs/CONTRIBUTING.md) for guidelines.
|
||||
|
||||
```bash
|
||||
git clone https://github.com/yourusername/morbac_pg.git
|
||||
cd morbac_pg
|
||||
git clone https://github.com/yourusername/pg_morbac.git
|
||||
cd pg_morbac
|
||||
|
||||
# Edit source files in src/
|
||||
vim src/authorization.sql
|
||||
@@ -229,9 +229,9 @@ vim src/authorization.sql
|
||||
make test # Run test suite
|
||||
|
||||
# When ready to release
|
||||
# 1. Update version in morbac_pg.control
|
||||
# 1. Update version in pg_morbac.control
|
||||
# 2. Build versioned file
|
||||
make build # Creates morbac_pg--X.Y.Z.sql
|
||||
make build # Creates pg_morbac--X.Y.Z.sql
|
||||
# 3. Tag in git
|
||||
git tag v1.0.1
|
||||
git push --tags
|
||||
@@ -240,13 +240,13 @@ git push --tags
|
||||
## Support
|
||||
|
||||
- Read the [documentation](docs/DOCUMENTATION.md)
|
||||
- Report bugs via [GitHub Issues](https://github.com/yourusername/morbac_pg/issues)
|
||||
- Ask questions in [Discussions](https://github.com/yourusername/morbac_pg/discussions)
|
||||
- Report bugs via [GitHub Issues](https://github.com/yourusername/pg_morbac/issues)
|
||||
- Ask questions in [Discussions](https://github.com/yourusername/pg_morbac/discussions)
|
||||
- Security issues: see [SECURITY.md](docs/SECURITY.md)
|
||||
|
||||
## Comparison with Traditional RBAC
|
||||
|
||||
| Feature | Traditional RBAC | morbac_pg |
|
||||
| Feature | Traditional RBAC | pg_morbac |
|
||||
|---------|-----------------|-----------|
|
||||
| Multi-tenancy | No | Yes |
|
||||
| Prohibitions | No | Yes |
|
||||
|
||||
Reference in New Issue
Block a user