-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
119 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// noop | ||
export default name => async () => {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import build from "./build.js"; | ||
import serve from "../runtime/serve.js"; | ||
|
||
const name = "json"; | ||
|
||
export default ({ filename }) => ({ | ||
build: build(name), | ||
serve: serve(filename), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import serve from "./serve.js"; | ||
|
||
export default ({ filename }) => ({ | ||
serve: serve(filename), | ||
}); |
8 changes: 4 additions & 4 deletions
8
packages/store/src/drivers/json/index.js → ...s/store/src/drivers/json/runtime/serve.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// noop | ||
export default name => async () => {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import build from "./build.js"; | ||
import serve from "../runtime/serve.js"; | ||
|
||
const name = "memory"; | ||
|
||
export default () => ({ | ||
build: build(name), | ||
serve: serve(), | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import serve from "./serve.js"; | ||
|
||
export default () => ({ | ||
serve: serve(), | ||
}); |
3 changes: 2 additions & 1 deletion
3
packages/store/src/drivers/memory/index.js → ...store/src/drivers/memory/runtime/serve.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/store/src/drivers/memory/index.spec.js → .../src/drivers/memory/runtime/serve.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import memory from "./driver.js"; | ||
import base from "../base.test.js"; | ||
import base from "../../base.test.js"; | ||
|
||
export default test => base(test, () => memory()()); |
2 changes: 1 addition & 1 deletion
2
packages/store/src/drivers/memory/types.js → ...store/src/drivers/memory/runtime/types.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { platform } from "rcompat/package"; | ||
import depend from "../../../depend.js"; | ||
|
||
const dependencies = ["better-sqlite3"]; | ||
|
||
export default name => async () => { | ||
const bun = platform() === "bun"; | ||
if (bun) { | ||
return; | ||
} | ||
await depend(dependencies, name); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import build from "./build.js"; | ||
import serve from "../runtime/serve.js"; | ||
|
||
const defaults = { | ||
filename: ":memory:", | ||
}; | ||
const name = "sqlite"; | ||
|
||
export default ({ | ||
filename = defaults.filename, | ||
} = {}) => ({ | ||
build: build(name), | ||
serve: serve(filename), | ||
}); |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/store/src/drivers/sqlite/Facade.js → ...tore/src/drivers/sqlite/runtime/Facade.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import serve from "./serve.js"; | ||
|
||
const defaults = { | ||
filename: ":memory:", | ||
}; | ||
|
||
export default ({ | ||
filename = defaults.filename, | ||
} = {}) => ({ | ||
serve: serve(filename), | ||
}); |
24 changes: 6 additions & 18 deletions
24
packages/store/src/drivers/sqlite/driver.js → ...store/src/drivers/sqlite/runtime/serve.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters