mirror of
https://github.com/safing/portmaster
synced 2025-09-16 01:39:41 +00:00
Add support for new query API
This commit is contained in:
parent
e21eb16a6b
commit
d098f1c137
10 changed files with 1154 additions and 43 deletions
|
@ -53,6 +53,15 @@ type (
|
|||
}
|
||||
)
|
||||
|
||||
func (ts TableSchema) GetColumnDef(name string) *ColumnDef {
|
||||
for _, def := range ts.Columns {
|
||||
if def.Name == name {
|
||||
return &def
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ts TableSchema) CreateStatement(ifNotExists bool) string {
|
||||
sql := "CREATE TABLE"
|
||||
if ifNotExists {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue