ceifa / sqlier

Yet another gmod database abstraction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whats that? an Error ;)

Pdzly opened this issue · comments

commented

image

commented

I tried to delete an model

commented
Groupmodel = sqlier.Model({
    Table = "groups",
    Columns = {
        Id = {
            Type = sqlier.Type.Integer
        },
        Name = {
            Type = sqlier.Type.String
        }
    },
    Database = "mk_db"
})

I guess the error is not related to this piece of code. It seems like an error when deleting. Are you calling delete somewhere in your code?

commented

yup like

local myinst = Groupmodel({
Id = 0,
Name = "Baum"
})
myinst:save()
myinst:delete()

commented

i havent got the 100% "original" code of mine but it should work like in the example said.

Fixed on last commit!