Comparing version 0.27.0-beta.1 to 0.34.1
@@ -12,7 +12,8 @@ type SubsetConfig = Partial<{ | ||
}>; | ||
declare function subsetConfig(config: SubsetConfig): SubsetConfig; | ||
type TransformConfig = Record<string, any>; | ||
declare function transformConfig<T = TransformConfig>(config: T): T; | ||
type Schema = string; | ||
type Table = string; | ||
type TableConfig = Record<Table, () => any>; | ||
type TransformConfig = Record<Schema, TableConfig>; | ||
export { SubsetConfig, TransformConfig, subsetConfig, transformConfig }; | ||
export { SubsetConfig, TransformConfig }; |
@@ -40,3 +40,3 @@ { | ||
"build": "tsup src/index.ts --clean --dts --format cjs,esm", | ||
"prepublishOnly": "yarn run build", | ||
"prepublishOnly": "yarn run build && node ./scripts/prepublishOnly.cjs", | ||
"postinstall": "node ./scripts/postInstall.cjs" | ||
@@ -46,3 +46,3 @@ }, | ||
"types": "./dist/index.d.ts", | ||
"version": "0.27.0-beta.1" | ||
} | ||
"version": "0.34.1" | ||
} |
# Snaplet | ||
We're in early development. | ||
Snaplet is a database snapshot tool. It captures snapshots of a PostgreSQL database that can be reduced in size by subsetting ("Give me 10% of Users") and transforms your data ("Remove all private information") via JavaScript functions. | ||
Snaplet can be used in any project that uses a PostgreSQL database. | ||
# Getting started | ||
The fastest way to capture a snapshot is by using [Snaplet Cloud](https://www.snaplet.dev/), and then using the Snaplet CLI to restore the snapshot. You can find more informations in the [documentation](https://docs.snaplet.dev/getting-started/start-here). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4463
8
9
75