Skip to content

tbl.new is unextandable #112

Closed
Closed
@kkharji

Description

@kkharji

For some reason new keys get checked for schema definition:

local M = db:tbl("neoclip", {
  id = true,
  regtype = "text",
  contents = "luatable",
  filetype = "text",
})

print(vim.inspect(M))

M.init = function(config)
  config.uri = path

   M:set_db(sqlite.new(config.uri))
end
E5113: Error while calling lua chunk: .../site/pack/packer/start/sqlite.lua/lua/sqlite/assert.lua:68: sqlite.lu
a: `init` does not exists in {`regtype, contents, id, filetype`}, schema is outdateset `self.db.tbl_schemas[tab
le_name]` or reload

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions