transforming database values to JS values (dates in sqlite)
hi. is it possible to transform database values with any driver into any JS value? such as integers to timestamps on specified columns? i want to do this for sqlite and other databases but idk how
1 Reply
i mean when using the official sqlite driver it translates a Date object into a ISO string which seems weird
https://kyse.link/#cN4IgpgJglgLg9gJwM4gFyhgTwA5jSKAW20RgAJgAdAOzLIHExqwEBDGSAGhroGUwANmADGMVgCMh3WmQCq2COzASpPMgElqSFmMlhpAXzIAzBHEJlKIANaZtAzFYDcNGmAAeJBOSjUOCY1ZhMDIAEXYJVm0KNVxkOGpUMgAFFiQEgBUVMBcZXBgk1JgsvVyDV2ZPUjJff0DglLTM7JiZKAgkxmY2DggAHmoAV0JxFgA+XLpjKGQYAH1qVkIwJKQYBF8Ac0myASj5xeWk8I4dzaYIFk6LljKKjy8fPxZ6kKKSoVa6duvupX6hiNxjtDisyGsNtRtmo4AB3bpzH5kQGjBA7JC4YRQMBIJK8THYpB3ahuKreMhYXAMG4IMgAXksIEIrCEVjIAB9GcYwMzWSAOYy4DAABYsZykx4UnAhfEiQn0xkQOCbNmcqzCdiqxnCpZrMUgXIS6qUt5NWgM-hCUTZPqpeLUD5gCZG8kmsgAOTAsLt6XNGi0OhtPuaemdlUlbuD1Hkig4CpjSiDZsdYZd5EjYHIFsEIl0QltmZTuQexulHq9RQVmm03iTxWyYZLrrLRQTcYZbeUegL9dDThAnBAAEdBixMPgiJLgOChwIyEZTOZGbZ7I4DTRJ9Vp7KsTj5yYzBYrCaALSQWCIcUk6jCBJrcEEnF4x9IBVWHWEPUIK80W9achmLCr4MqwsKsLAZAQOIagAHT2LmABih4ABRWHEvpWAAlLB8GiAAggIAjIdhMgwbCooIGAqEgHsawLEsYBWJwjJjExyJemESjESRdAwR4IiDBwxH9gYg7QCyub4Egs6wHgg4roI47oCAJr4GImwDiAoL4AADDBABMADsBkgAYBhAA