Answer Overflow Logo
Search Answer OverflowGitHubAdd Your Server
HomePopular
Topics

K
Kysely•2y ago
oof2win2

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
oof2win2
oof2win2OP•2y ago
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
KyselyJoin
2KMembers
View on Discord

Did you find this page helpful?

Legal

TermsPrivacyCookiesEULA

About

DocsPricingAboutContributorsCommunitiesChangelogAll Posts
TwitterGitHubDiscord

© 2024 Hedgehog Software, LLC. All rights reserved.