mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
remove meaningless Writeable function
This commit is contained in:
parent
420b44a79a
commit
fa481c91de
1 changed files with 0 additions and 13 deletions
13
pql/ast.go
13
pql/ast.go
|
|
@ -791,19 +791,6 @@ func (c *Call) TranslateInfo(columnLabel, rowLabel string) (colKey, rowKey, fiel
|
|||
}
|
||||
}
|
||||
|
||||
// Writable returns true if call is mutable (e.g. can write new translation keys)
|
||||
func (c *Call) Writable() bool {
|
||||
switch c.Name {
|
||||
case "Set", "SetRowAttrs", "SetColumnAttrs", "SetBit":
|
||||
return true
|
||||
case "Not":
|
||||
// to support queries like Not(Row(f="garbage"))
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Call) ArgString(key string) string {
|
||||
value, ok := c.Args[key]
|
||||
if !ok {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue