sqlcx-orm 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ // @bun
2
+ // src/config/index.ts
3
+ function defineConfig(config) {
4
+ return config;
5
+ }
6
+ async function loadConfig(configPath) {
7
+ const resolved = Bun.resolveSync(configPath, process.cwd());
8
+ const mod = await import(resolved);
9
+ return mod.default;
10
+ }
11
+
12
+ export { defineConfig, loadConfig };
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ // src/utils/index.ts
3
+ function pascalCase(str) {
4
+ return str.split(/[_\-\s]+/).map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join("");
5
+ }
6
+ function camelCase(str) {
7
+ const pascal = pascalCase(str);
8
+ return pascal.charAt(0).toLowerCase() + pascal.slice(1);
9
+ }
10
+
11
+ export { pascalCase, camelCase };