#[collection(name = "_basic", authority = "khonsulabs_", views = [BasicCount, BasicByParentId, BasicByParentIdEager, BasicByTag, BasicByCategory, BasicByCategoryCow], core = crate)]
#[view(collection = Basic, key = Option<u64>, value = usize, name = "by-parent-id", core = crate)]
#[view(collection = Basic, key = Option<u64>, value = usize, name = "by-parent-id-eager", core = crate)]
#[view(collection = Basic, key = String, value = usize, name = "by-category-cow", core = crate)]
#[collection(name = "encrypted-basic", authority = "khonsulabs", views = [EncryptedBasicCount, EncryptedBasicByParentId, EncryptedBasicByCategory])]
#[view(collection = EncryptedBasic, key = Option<u64>, value = usize, name = "by-parent-id", core = crate)]
#[view(collection = EncryptedBasic, key = String, value = usize, name = "by-category", core = crate)]
pub async fn store_retrieve_update_delete_tests<C: AsyncConnection>(db: &C) -> anyhow::Result<()> {
pub fn blocking_store_retrieve_update_delete_tests<C: Connection>(db: &C) -> anyhow::Result<()> {
pub async fn transaction_check_tests<C: AsyncConnection + 'static>(db: &C) -> anyhow::Result<()> {
pub fn blocking_transaction_check_tests<C: Connection + 'static>(db: &C) -> anyhow::Result<()> {
pub async fn unassociated_collection_tests<C: AsyncConnection>(db: &C) -> anyhow::Result<()> {
pub async fn compaction_tests<C: AsyncConnection + AsyncKeyValue>(db: &C) -> anyhow::Result<()> {
let role_token = AuthenticationToken::create(&IdentityReference::role(role.header.id)?, admin)?;
// For f64 -> i64, the limit is fractional numbers. Saturating isn't tested in this conversion path.
// For f64 -> u64, the limit is fractional numbers or negative numbers. Saturating isn't tested in this conversion path.
// For f64 -> i64, the limit is fractional numbers. Saturating isn't tested in this conversion path.
// For f64 -> u64, the limit is fractional numbers or negative numbers. Saturating isn't tested in this conversion path.