BccCode.Privacy.Postgres
12.0.0
See the version list below for details.
dotnet add package BccCode.Privacy.Postgres --version 12.0.0
NuGet\Install-Package BccCode.Privacy.Postgres -Version 12.0.0
<PackageReference Include="BccCode.Privacy.Postgres" Version="12.0.0" />
<PackageVersion Include="BccCode.Privacy.Postgres" Version="12.0.0" />
<PackageReference Include="BccCode.Privacy.Postgres" />
paket add BccCode.Privacy.Postgres --version 12.0.0
#r "nuget: BccCode.Privacy.Postgres, 12.0.0"
#:package BccCode.Privacy.Postgres@12.0.0
#addin nuget:?package=BccCode.Privacy.Postgres&version=12.0.0
#tool nuget:?package=BccCode.Privacy.Postgres&version=12.0.0
BccCode.Privacy.Postgres
The PostgreSQL layer of BCC Privacy, generated from the data classes and processes of BccCode.Privacy:
- On each table that holds personal data:
allowed_processes(the processes that keep something in the row),person_link(identifiedorpseudonymised; not on child entities) andlast_reduced_at, with check constraints and a comment on every column naming its personal data category, or "data subject", "not personal data" or "key". - The catalogue:
privacy.process,privacy.personal_data_category_field,privacy.process_personal_data_categoryandprivacy.disclosure_rules. Joining the second and third answers "which processes keepapp.application.phone, and until when?". Processing permissions are rules in code: the catalogue holds them, and there are no per-person or per-group permission rows. - The package tables:
privacy.consents(the one record of each consent: a consent process keeps a person's rows while their row isgiven,PrivacyConsents.GivenSql),privacy.restrictions,privacy.pseudonym, and the bookkeeping tablesprivacy.tombstone,privacy.job_run,privacy.read_auditandprivacy.outbox; andprivacy.group_members, the one cache of the members of Core API groups (group_uidandprocess_idrequired; one row pergroup_uid,person_uid,org_uid,process_id,group_name, unique indexgroup_members_process_key): a member covers only the process whose adoption names that Core group. A group of the application's own rows (DataSubjects<TRow>) is a rule over its table and has no rows there. The script drops the permission tables of earlier versions (privacy.legal_bases,legal_basis_data_sources,group_legal_bases,group_legal_basis_groups,release_record) and the viewprivacy.effective_data_sources, and deletes the rows of earlier versions, which name no process (the Core group loader loads the copies again at start-up); it then makesgroup_uidandprocess_idrequired and drops the checkgroup_members_group_namedand the indexesgroup_members_groupandgroup_members_key. - Reads across orgs:
visible.<table>andvisible.<table>_rows(reader_orgs, reader_process): the reader's own rows its process keeps, and other orgs' rows the disclosure rules grant it.
The EF Core adapter writes all of this into a normal migration. Other migrators run the script:
var data = PersonalDataModel.FromAssemblies(typeof(ApplicationData).Assembly);
var processes = ProcessModel.FromAssemblies(data, typeof(ParticipationProcess).Assembly);
var sql = PrivacySql.Script(processes, new ConventionStorageMap("app", jsonMembers: "WorkPart"));
The script is idempotent and can run on every deploy, after the application's own tables exist. IStorageMap says
where each field is stored; ConventionStorageMap uses snake-case names and treats the listed members as JSON columns.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BccCode.Privacy (>= 12.0.0)
- BccCode.Privacy.Vocabulary (>= 1.0.39)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BccCode.Privacy.Postgres:
| Package | Downloads |
|---|---|
|
BccCode.Privacy.EntityFrameworkCore
Purpose-bound access to personal data in EF Core and PostgreSQL: the privacy layer in an ordinary EF model, filters by organisation and process, the derivation of what each process keeps on save, hiding of fields a process does not keep, sharing between organisations, consents and the read audit. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.6.8 | 43 | 11/26/2026 |
| 14.6.7 | 42 | 11/26/2026 |
| 14.6.6 | 49 | 11/26/2026 |
| 14.6.5 | 51 | 11/26/2026 |
| 14.6.4 | 47 | 11/26/2026 |
| 14.6.3 | 49 | 11/26/2026 |
| 14.6.2 | 47 | 11/26/2026 |
| 14.6.1 | 55 | 11/26/2026 |
| 14.6.0 | 44 | 11/26/2026 |
| 14.5.0 | 47 | 11/26/2026 |
| 14.4.0 | 49 | 11/26/2026 |
| 14.3.0 | 39 | 11/26/2026 |
| 14.2.0 | 45 | 11/26/2026 |
| 14.1.1 | 47 | 11/26/2026 |
| 14.1.0 | 41 | 11/26/2026 |
| 14.0.1 | 42 | 11/26/2026 |
| 14.0.0 | 44 | 11/26/2026 |
| 13.0.0 | 49 | 11/26/2026 |
| 12.0.1 | 44 | 11/26/2026 |
| 12.0.0 | 48 | 11/26/2026 |