Skip to content

Commit

Permalink
v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Salceanu committed Aug 29, 2019
1 parent 1700418 commit ea5c923
Show file tree
Hide file tree
Showing 14 changed files with 532 additions and 616 deletions.
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# Changelog

## v0.12.0 - 2019-08-29

* refactored to use Julia native logging
* cleaned up new model file template
* pretty printing of `DbId` types
* removed shortcut types for the query API (**breaking**)
* improved API for `all` selector, to support `limit` and `offset`
* new configuration option `log_to_file::Bool`
* cleaned up internal API
* generator no longer creates standalone SearchLight apps files
* API consolidation: renamed various methods from `_` to no `_`: `updatewith`, `createorupdateby`, `createorupdate`, `deleteall` (**breaking**)

## v0.11.0 - 2019-08-22

* Renamed `SearchLight.db_init()` to `SearchLight.init()` **breaking**
* Renamed `SearchLight.db_init()` to `SearchLight.init()` (**breaking**)
* Internal API cleanup
* `Settings` cleanup: removal of unused `log_highlight` and `log_rotate` fields **breaking**
* `Settings` cleanup: removal of unused `log_highlight` and `log_rotate` fields (**breaking**)
* dependencies update
* fix an issue which caused `SearchLight.delete_all` to silently fail.
29 changes: 11 additions & 18 deletions Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ uuid = "324d7699-5711-5eae-9e2f-1d82baa6b597"
version = "0.5.5"

[[CodeTracking]]
deps = ["InteractiveUtils", "Test", "UUIDs"]
git-tree-sha1 = "9b21a2dfe51ba71fdc5688039075819196595367"
deps = ["InteractiveUtils", "UUIDs"]
git-tree-sha1 = "0becdab7e6fbbcb7b88d8de5b72e5bb2f28239f3"
uuid = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2"
version = "0.5.7"
version = "0.5.8"

[[Codecs]]
deps = ["Test"]
Expand All @@ -51,9 +51,9 @@ version = "1.0.1"

[[DataFrames]]
deps = ["CategoricalArrays", "Compat", "DataAPI", "InvertedIndices", "IteratorInterfaceExtensions", "Missings", "PooledArrays", "Printf", "REPL", "Reexport", "SortingAlgorithms", "Statistics", "TableTraits", "Tables", "Unicode"]
git-tree-sha1 = "48ef38bd7cf0e8fd598bda981409eb6ef4b96cbd"
git-tree-sha1 = "934b75a90b6cb315f9ea0df961768a02c1da1612"
uuid = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
version = "0.19.2"
version = "0.19.3"

[[DataStreams]]
deps = ["Missings", "WeakRefStrings"]
Expand Down Expand Up @@ -173,9 +173,9 @@ uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"

[[LoweredCodeUtils]]
deps = ["JuliaInterpreter"]
git-tree-sha1 = "45af0ce564939cbc9b88374f91e3339c0430fdff"
git-tree-sha1 = "ea065f38cccb556b4eabe43b3b3b91e1c67cbffd"
uuid = "6f1432cf-f94c-5a45-995e-cdbf5db27b0b"
version = "0.3.7"
version = "0.3.8"

[[Markdown]]
deps = ["Base64"]
Expand All @@ -194,16 +194,9 @@ uuid = "f28f55f0-a522-5efc-85c2-fe41dfb9b2d9"
version = "0.12.1"

[[Millboard]]
deps = ["Compat"]
git-tree-sha1 = "21622ffb05343e51bc5b95c3576a71b26183809d"
git-tree-sha1 = "c6d4a61d1b74ba35b1efe5cb025bf852145521e1"
uuid = "39ec1447-df44-5f4c-beaa-866f30b4d3b2"
version = "0.2.0"

[[MiniLogging]]
deps = ["Test"]
git-tree-sha1 = "4f2f5ca0663afa0172db23bbdd99e683dd17fb0e"
uuid = "f59402ec-0262-5707-a561-770af94bc5a6"
version = "0.2.0"
version = "0.2.1"

[[Missings]]
deps = ["SparseArrays", "Test"]
Expand Down Expand Up @@ -277,9 +270,9 @@ version = "0.2.0"

[[Revise]]
deps = ["CodeTracking", "Distributed", "FileWatching", "JuliaInterpreter", "LibGit2", "LoweredCodeUtils", "OrderedCollections", "Pkg", "REPL", "UUIDs", "Unicode"]
git-tree-sha1 = "f0d18f8b5199150dd9ced1cc6f9200b167fbb4d9"
git-tree-sha1 = "34e80fba701ce58064b3b5f4b32027ad3dc136ba"
uuid = "295af30f-e4ad-537b-8983-00126c2a3abe"
version = "2.1.7"
version = "2.1.8"

[[SHA]]
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SearchLight"
uuid = "340e8cb6-72eb-11e8-37ce-c97ebeb32050"
authors = ["Adrian Salceanu <[email protected]>"]
version = "0.11.0"
version = "0.12.0"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand All @@ -10,9 +10,9 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
LibPQ = "194296ae-ab2e-5f79-8cd4-7183a0a5a0d1"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
MbedTLS = "739be429-bea8-5141-9913-cc70e7f3736d"
Millboard = "39ec1447-df44-5f4c-beaa-866f30b4d3b2"
MiniLogging = "f59402ec-0262-5707-a561-770af94bc5a6"
MySQL = "39abe10b-433b-5dbd-92d4-e302a9df00cd"
Nullables = "4d1e1d77-625e-5b40-9113-a560ec7a8ecd"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Expand Down
10 changes: 7 additions & 3 deletions src/Configuration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ const DEV = "dev"
const PROD = "prod"
const TEST = "test"

haskey(ENV, "SEARCHLIGHT_ENV") || (ENV["SEARCHLIGHT_ENV"] = DEV)

# defaults
const SEARCHLIGHT_VERSION = v"0.11.0"
const SEARCHLIGHT_VERSION = v"0.12.0"


"""
Expand Down Expand Up @@ -143,27 +145,29 @@ mutable struct Settings
log_queries::Bool
log_level::Symbol
log_formatted::Bool
log_to_file::Bool

model_relations_eagerness::Symbol

Settings(;
app_env = ENV["SEARCHLIGHT_ENV"],

db_migrations_table_name = SearchLight.SEARCHLIGHT_MIGRATIONS_TABLE_NAME,
db_migrations_folder = SearchLight.MIGRATIONS_FOLDER_NAME,
db_migrations_folder = SearchLight.MIGRATIONS_PATH,
db_config_settings = Dict{String,Any}(),

log_db = false,
log_queries = true,
log_level = :debug,
log_formatted = true,
log_to_file = true,

model_relations_eagerness = :lazy
) =
new(
app_env,
db_migrations_table_name, db_migrations_folder, db_config_settings,
log_db, log_queries, log_level, log_formatted,
log_db, log_queries, log_level, log_formatted, log_to_file,
model_relations_eagerness
)
end
Expand Down
Loading

2 comments on commit ea5c923

@essenciary
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/3045

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.0 -m "<description of version>" ea5c923a1c5c9fdaeeaeb67a0203fadd800b53b7
git push origin v0.12.0

Please sign in to comment.