Swap
Plugin for auto-update "updated_at" field
Hello Team, Greetings!
I am trying to write a plugin that will auto-update the "updated_at" column when there will be an update operation.
So far, I have implemented the following code:
But not sure how to implement further for auto-updating the column, any help or suggestion will really helpful. Thanks 🙂
Note: I am using Postgres.
11 replies
Postgres Full Text Search
Hello, I am trying to search queries using Postgres full-text search, and here is my current implementation:
the above implementation is working but my IntelliJ lint seems unhappy.
I was wondering if is there any better way to write the same in a more typesafe way?
Thank you!
19 replies
Unable to insert geometry Postgres
Hey everyone 👋🏻
Greetings!
I am trying to insert
point
data into my Postgresql table but getting error: parse error - invalid geometry
error. Here is the code
and here is the schema:
and here is my database schema:
i tried solution provided by @koskimas in the https://github.com/kysely-org/kysely/issues/133#issuecomment-1209233409 but no luck.
attaching the log generated by kysely
Query: insert into "location" ("name", "coordinates") values ($1, $2) returning * [91.9 ms]
$1: Anom
$2: (-71.060316,48.432044)
Unable to figure out whats wrong. Thanks.8 replies