mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 13:39:15 +00:00
drizzle ORM verified working
This commit is contained in:
parent
382ceb120f
commit
37c72a3931
@ -112,27 +112,6 @@
|
|||||||
<Inspect name="$appState.searchTerm" value={$appState.searchTerm} />
|
<Inspect name="$appState.searchTerm" value={$appState.searchTerm} />
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<Button
|
|
||||||
onclick={() => {
|
|
||||||
db.query.extensions
|
|
||||||
.findMany()
|
|
||||||
.execute()
|
|
||||||
.then((res) => {
|
|
||||||
console.log(res)
|
|
||||||
})
|
|
||||||
// db.select("SELECT * FROM extensions;", []).then((res) => {
|
|
||||||
// console.log(res)
|
|
||||||
// })
|
|
||||||
// db.execute(
|
|
||||||
// "INSERT INTO extension_data (ext_id, data_type, data, search_text, metadata) VALUES (?, ?, ?, ?, ?);",
|
|
||||||
// [1, "Test", "Hello, world!", "Hello, world!", "{'metadata': 'test'}"]
|
|
||||||
// ).then((res) => {
|
|
||||||
// console.log(res)
|
|
||||||
// })
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Select
|
|
||||||
</Button>
|
|
||||||
<Command.Root
|
<Command.Root
|
||||||
class={cn("h-screen rounded-lg shadow-md")}
|
class={cn("h-screen rounded-lg shadow-md")}
|
||||||
bind:value={$appState.highlightedCmd}
|
bind:value={$appState.highlightedCmd}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user