question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Node-less version

See original GitHub issue

I know it’s not Kysely goal to be multi-platform aka universal, still, I believe it would be a very nice addition with relatively minimal effort. With the advent of local-first software, especially awesome SQLite, it would be nice to be able to use Kysely in browsers or React Native without hacks.

I’m opening an issue because this can be helpful for someone else. Maybe it should be mentioned in the readme.

webpack: (config) => {
  // Remove kysely server deps.
  config.resolve.fallback = {
    ...config.resolve.fallback,
    mysql2: false,
    pg: false,
    crypto: false,
    path: false,
    fs: false,
  };
  return config;
},

From the architectural point of view, I don’t see a reason why a typed string builder should depend on Node.js at all. The single-responsibility principle FTW.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:63 (28 by maintainers)

github_iconTop GitHub Comments

3reactions
koskimascommented, Jan 4, 2022

Let’s go with the separate Migrator class anyway. It’s the best solution. The reason for the coupling is easily solvable otherwise.

3reactions
barthuijgencommented, Dec 21, 2021

I would love to get this working in the Deno runtime. I’ve tried this using their node compatibility mode and using esbuilder tools like https://www.skypack.dev/view/kysely but could not get it to work.

You are right. However, Kysely is not just a typed string builder.

I get this, but maybe to some that’s all they need. I would like to use Kysely for string building and plug the strings into a database client that Deno supports.

Would be amazing to maybe split the package in two? one for typed string building, another for the rest?

Read more comments on GitHub >

github_iconTop Results From Across the Web

NodeLESS 1.0.2 - NuGet Gallery
NuGet\Install-Package NodeLESS -Version 1.0.2. This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the...
Read more >
nodeless - npm
Latest version: 0.0.0, last published: 5 years ago. Start using nodeless in your project by running `npm i nodeless`. There are no other...
Read more >
Building a Nodeless Kubernetes Platform - William Denniss ...
Don't miss out! Join us at our upcoming hybrid event: KubeCon + CloudNativeCon North America 2022 from October 24-28 in Detroit (and online!)...
Read more >
Nodal vs. Nodeless Objects - TechDocs - Broadcom Inc.
Nodal objects differ from nodeless objects primarily in the use of node separators and use of the asterisk. The asterisk is equivalent to...
Read more >
Hybrid cloud Kubernetes with Nodeless
Nodeless Kubernetes enables you to stretch a single Kubernetes control plane to schedule pods across heterogenous compute types (on-demand, pre-emptible…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found