:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
pub mod error;
pub mod postgres;
pub mod traits;
pub mod types;
pub use error::{StorageError, StorageResult, TimeoutKind};
pub use types::{
CohortMembership, DeletePersonsOutcome, DistinctIdMapping, DistinctIdWithVersion, Group,
GroupIdentifier, GroupKey, GroupTypeMapping, HashKeyOverride, HashKeyOverrideContext, Person,
PersonVersionFloorResult, SplitResult, TombstoneTarget, TombstonedDeleteOutcome,
TombstonedDistinctId, TombstonedPerson, VersionFloorOutcome,
};
pub use traits::{
CohortStorage, DistinctIdLookup, FeatureFlagStorage, GroupStorage, PersonLookup, PersonRepair,
};
/// Combined storage trait that includes all sub-traits.
/// Use this when you need access to all storage operations.
pub trait FullStorage:
PersonLookup + DistinctIdLookup + GroupStorage + CohortStorage + FeatureFlagStorage + PersonRepair
{
}
// Blanket implementation: anything that implements all sub-traits automatically implements FullStorage
impl<T> FullStorage for T where
T: PersonLookup
+ DistinctIdLookup
+ GroupStorage
+ CohortStorage
+ FeatureFlagStorage
+ PersonRepair
{
}