Documentation
¶
Overview ¶
Package codium_shared is a library shared by the programs of the codium project.
Index ¶
- Constants
- func DoesTableExists(projName, tableName string) bool
- func GetDataPath() (string, error)
- func GetSetting(settingName string) (string, error)
- func MakeIndex(projName, tableName, fieldName, newData, rowId string) error
- func MakeSafeIndexName(v string) string
- func UntestedRandomString(length int) string
- type FieldDefn
- type FkeyDefn
- type QueryData
- type TableDefn
- type WhereOptions
Constants ¶
View Source
const ( DateFormat = "2006-01-02 MST" DateFormatNoTZ = "2006-01-02" DateTimeFormat = "2006-01-02T15:04:05 MST" DateTimeFormatNoTZAndS = "2006-01-02T15:04" )
Variables ¶
This section is empty.
Functions ¶
func DoesTableExists ¶ added in v1.2.0
func GetDataPath ¶
func GetSetting ¶ added in v1.1.8
func MakeSafeIndexName ¶ added in v1.2.0
func UntestedRandomString ¶ added in v1.2.0
Types ¶
type QueryData ¶
type QueryData struct { Fields []string TableName string ExpandTable bool Distinct bool Limit string StartIndex string OrderBy string OrderDirection string // one of "asc", "desc" WhereOpts []WhereOptions }
func ParseSearchStmt ¶
type TableDefn ¶
type TableDefn struct { TableName string Fields []FieldDefn ForeignKeys []FkeyDefn UniqueGroups [][]string }
func GetVersionedTableDefn ¶ added in v1.2.0
func ParseTableDefnStmt ¶
Click to show internal directories.
Click to hide internal directories.