Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring code to support multiple edges #2

Merged
merged 5 commits into from
Apr 2, 2023

Conversation

C-Dao
Copy link
Owner

@C-Dao C-Dao commented Apr 2, 2023

No description provided.

src/server-worker.ts Outdated Show resolved Hide resolved
src/core/controller.ts Outdated Show resolved Hide resolved
@C-Dao C-Dao force-pushed the refactor/integrate_multi_edges branch from fbf6a73 to 93d545c Compare April 2, 2023 14:02
@C-Dao
Copy link
Owner Author

C-Dao commented Apr 2, 2023

@losfair Hello, I don't know how to run Deno with the KV feature 😂. how does the KV feature work on local enviroment? could you have time to help me? Thank you very much!

@C-Dao
Copy link
Owner Author

C-Dao commented Apr 2, 2023

@losfair Hello, I don't know how to run Deno with the KV feature 😂. how does the KV feature work on local enviroment? could you have time to help me? Thank you very much!

I have completed the testing of the Cloudflare environment.

@losfair
Copy link
Contributor

losfair commented Apr 2, 2023

Hi @C-Dao !

Thanks for your work on opencatd_worker, it's nice :)

If you run Deno >= 1.32 with the --unstable flag, the KV API (Deno.openKv, Deno.Kv) should be available:

deno run -A --unstable deno/index.ts

does this work for you?

@C-Dao
Copy link
Owner Author

C-Dao commented Apr 2, 2023

Hi @C-Dao !

Thanks for your work on opencatd_worker, it's nice :)

If you run Deno >= 1.32 with the --unstable flag, the KV API (Deno.openKv, Deno.Kv) should be available:

deno run -A --unstable deno/index.ts

does this work for you?

I don't need a local database? it means Deno includes a database? likeing a sqlite? 🤯

@losfair
Copy link
Contributor

losfair commented Apr 2, 2023

Yes, the local KV database is powered by SQLite so you don't need to run a DB server to use KV.

The default location of the database is under Deno's "origin storage" directory. You can find the location by running deno info.

@C-Dao
Copy link
Owner Author

C-Dao commented Apr 2, 2023

Yes, the local KV database is powered by SQLite so you don't need to run a DB server to use KV.

The default location of the database is under Deno's "origin storage" directory. You can find the location by running deno info.

Oh, It is so cool !!! thanks again.

@C-Dao C-Dao merged commit 65579e5 into main Apr 2, 2023
@C-Dao C-Dao deleted the refactor/integrate_multi_edges branch April 3, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants