You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's really annoying to have to call table drop or keep track of schema.ensure. In nvim-telescope/telescope-frecency.nvim#35, I was trying to debug and understand why count field keep being nil, even though the schema has default=0. It turns out the calling files.schema() returned an old schema, which means that the new schema has not effect on pre-existing table.
I'd like to compare the sql table schema and user provided schema and compare
between them, and if they are different. I'd like table module to auto alter.
The full table schema information as it exists in C side can be found with db:schema("files", true), it output something like that
still compatible with query as first argument ✅
Examples:
```lua
tbl:each(function(row) .. end) -- execute a function on all table rows
tbl:each(function(row) .. end, {...} ) -- execute a function on all table rows match the query
-- map work the same way, but return transformed table
```
closeskkharji#97
It's really annoying to have to call table drop or keep track of schema.ensure. In nvim-telescope/telescope-frecency.nvim#35, I was trying to debug and understand why count field keep being nil, even though the schema has default=0. It turns out the calling files.schema() returned an old schema, which means that the new schema has not effect on pre-existing table.
I'd like to compare the sql table schema and user provided schema and compare
between them, and if they are different. I'd like table module to auto alter.
The full table schema information as it exists in C side can be found with
db:schema("files", true)
, it output something like thatIn telescope-frecency case, I wanted it to change to the following:
The text was updated successfully, but these errors were encountered: