ursus
03/22/2025, 8:03 PMsqldelight
in ktor server a bad idea? I'm already familiar with it but I'm unsure about the schema creation, ddl etc, since sqldelight seems to be driven by the DDL - which from what I gather is not used in backend apps? (I'm a android developer, backend noob)jw
03/22/2025, 8:12 PMjw
03/22/2025, 8:17 PMjw
03/22/2025, 8:17 PMursus
03/22/2025, 8:45 PMSchema.create
and that's it?jw
03/22/2025, 8:47 PMursus
03/22/2025, 8:49 PMCREATE TABLE bla bla
part in .sq files is optional? if I use the `*`deriveSchemaFromMigrations` ?`*
https://sqldelight.github.io/sqldelight/2.1.0-SNAPSHOT/js_sqlite/migrations/jw
03/22/2025, 8:50 PMjw
03/22/2025, 8:50 PMursus
03/22/2025, 8:51 PMAnd migrationsyou mean in flyway, right?
ursus
03/22/2025, 8:52 PMwithContext(IO)
wraping a blocking sqldelight call enough?jw
03/22/2025, 8:52 PMursus
03/22/2025, 8:54 PMwithContext(IO)
mean, it would still tie up a thread that does the db work inside the lambda right? so not too too much of savings?ursus
03/22/2025, 8:57 PMjw
03/22/2025, 8:57 PMursus
03/22/2025, 8:58 PM.sqm
files? how does that play nice with flyway? doesn't flyway typically manage migrations?
> `deriveSchemaFromMigrations`¶
> Type: Property<Boolean>
> If set to true, the schema for your database will be derived from your .sqm
files as if each migration had been applied. If false, your schema is defined in .sq
files.
or do you mean this? and I can somehow let sqldelight take in flyway migration files?jw
03/22/2025, 9:18 PMursus
03/22/2025, 9:22 PMV1__foo.sql
vs 1.sqm
jw
03/22/2025, 9:28 PMjw
03/22/2025, 9:28 PMursus
03/22/2025, 9:28 PMursus
03/22/2025, 9:33 PMursus
03/22/2025, 9:39 PM.sql
for migrations -.-jw
03/22/2025, 9:52 PMjw
03/22/2025, 9:52 PM