SearchLight.Generator.newmodel
— Functionnewmodel(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.
SearchLight.Generator.newresource
— Functionnewresource(resource_name::Union{String,Symbol}) :: Nothing
Generates all the files associated with a new resource and persists them to the resources folder.
SearchLight.Generator.new_table_migration
— Functionnew_table_migration(migration_name::Union{String,Symbol}; pluralize::Bool = true) :: Nothing
Cretes the migration script for a new table.
SearchLight.Generator.newmigration
— Functionnewmigration(migration_name::Union{String,Symbol}) :: Nothing
Creates a new migration script.
SearchLight.Generator.setup_resource_path
— Functionsetup_resource_path(resource_name::String) :: String
Computes and creates the directories structure needed to persist a new resource.
SearchLight.Generator.write_resource_file
— Functionwrite_resource_file(resource_path::String, file_name::String, resource_name::String) :: Bool
Generates all resouce files and persists them to disk.
SearchLight.Generator.newconfig
— Functionnewconfig(path::String = SearchLight.DB_PATH; filename = SearchLight.SEARCHLIGHT_DB_CONFIG_FILE_NAME) :: Nothing
Creates a new configuration file.
SearchLight.Generator.resource_does_not_exist
— Functionresource_does_not_exist(resource_path::String, file_name::String) :: Bool
Checks if a given resource does not exist at resource_path
.
SearchLight.Generator.model_file_name
— Functionmodel_file_name(resource_name::Union{String,Symbol}) :: String
Generates the file name for the model corresponding to resource_name
.
SearchLight.Generator.validator_file_name
— Functionvalidator_file_name(resource_name::Union{String,Symbol}) :: String
Generates the file name for the validator corresponding to resource_name
.