1
0
Fork 0
mirror of synced 2024-09-19 18:59:06 +12:00
budibase/packages/backend-core/tests/core/utilities/structures/db.ts

13 lines
262 B
TypeScript
Raw Normal View History

2023-03-02 01:16:57 +13:00
import { structures } from ".."
2023-02-04 08:23:36 +13:00
import { newid } from "../../../src/newid"
export function id() {
return `db_${newid()}`
}
2023-03-02 01:16:57 +13:00
export function rev() {
return `${structures.generator.character({
numeric: true,
})}-${structures.uuid().replace(/-/, "")}`
}