SearchLight.Generator.newmodel - Function
newmodel(name::Union{String,Symbol}; path::Union{String,Nothing} = nothing, pluralize::Bool = true) :: Nothing

Generates a new SearchLight model file and persists it to the resources folder.

source


SearchLight.Generator.newresource - Function
newresource(resource_name::Union{String,Symbol}) :: Nothing

Generates all the files associated with a new resource and persists them to the resources folder.

source


SearchLight.Generator.new_table_migration - Function
new_table_migration(migration_name::Union{String,Symbol}; pluralize::Bool = true) :: Nothing

Cretes the migration script for a new table.

source


SearchLight.Generator.newmigration - Function
newmigration(migration_name::Union{String,Symbol}) :: Nothing

Creates a new migration script.

source


SearchLight.Generator.setup_resource_path - Function
setup_resource_path(resource_name::String) :: String

Computes and creates the directories structure needed to persist a new resource.

source


SearchLight.Generator.write_resource_file - Function
write_resource_file(resource_path::String, file_name::String, resource_name::String) :: Bool

Generates all resouce files and persists them to disk.

source


SearchLight.Generator.newconfig - Function
newconfig(path::String = SearchLight.DB_PATH; filename = SearchLight.SEARCHLIGHT_DB_CONFIG_FILE_NAME) :: Nothing

Creates a new configuration file.

source


SearchLight.Generator.resource_does_not_exist - Function
resource_does_not_exist(resource_path::String, file_name::String) :: Bool

Checks if a given resource does not exist at resource_path.

source


SearchLight.Generator.model_file_name - Function
model_file_name(resource_name::Union{String,Symbol}) :: String

Generates the file name for the model corresponding to resource_name.

source


SearchLight.Generator.validator_file_name - Function
validator_file_name(resource_name::Union{String,Symbol}) :: String

Generates the file name for the validator corresponding to resource_name.

source



Genie