Skip to content

u/aimeos

In this archive from Jan 2017 to Dec 2026

67
posts
214
comments
12
media
832
score
38 saved before deletion

Upscheme will always try to migrate to the declared state, so changes by hand could be removed. It fails if it's impossible because the columns are incompatible. Then, you can fix it and re-run the migrations because it only compares source and target state.

Currently, there's no dry-run mode but it's easy to add one where it only displays the SQL statements that would be executed. We will implement that.

1 points

Unfortunately, immunable value objects have some drastic performance/memory consequences, e.g. think of sorting (inplace vs. copy+sort). Thus, there are sometimes two different methods available like sort() and toSorted() where the later returns a new object.

1 points

Thanks! 😄

The merge is a three way merge like Git does (keep non-conflicting changes from both, show conflicts and let the user decide which one to keep). If a Reverb web socket server is installed, the changes are pushed in realtime to all users working on the same page (except the content you are currently modifying or have already modified).

1 points

You are right, configuring a new provider isn't always enough as their support for features may vary. The main reason for using Prisma is still that you can change e.g. from OpenAI to Anthropic when one of them gets better in an area you need without rewriting your whole integration.

The Prisma documentation also contains detailed comparison which provider supports what feature so you know about the differences upfront.

1 points

Constants are used at other places where they clearly make sense. Using constants or enums for provider names seems like a good thing at first sight, but providers are an open set (users can create custom providers), and an enum or constant class can't be extended by third parties. That would create an inconsistent API where built-in providers use constants but custom ones use strings. Strings keep the API uniform and extensible for everyone.

For consistency, simplicity and real world usage we've decided against using constants or enums for providers.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.