Skip to content

Commit 532709f

Browse files
authored
Add disk caching interface (#29)
```julia # PS C:\Users\krynjupc\.julia\dev\DTables> julia -t4 -p4 julia> using DTables [ Info: Precompiling DTables [20c56dc6-594c-4682-91cf-1d46875b1eba] julia> enable_disk_caching!() [ Info: Disk cache setup successful true ```
1 parent 91d1943 commit 532709f

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.JuliaFormatter.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ margin = 100
33
always_use_return = true
44
whitespace_in_kwargs = false
55
import_to_using = false
6+
ignore = ["test", "misc", "docs"]

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
version:
2323
- '1.7'
2424
- '1.8'
25+
- '1.9'
2526
- 'nightly'
2627
os:
2728
- ubuntu-latest

.github/workflows/format_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
julia-version: [1.8.2]
15+
julia-version: [1.9.2]
1616
julia-arch: [x86]
1717
os: [ubuntu-latest]
1818
steps:
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install JuliaFormatter and format
2424
run: |
2525
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
26-
julia -e 'using JuliaFormatter; format("src", verbose=true)'
26+
julia -e 'using JuliaFormatter; format(".", verbose=true)'
2727
- name: Format check
2828
run: |
2929
julia -e '

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DTables"
22
uuid = "20c56dc6-594c-4682-91cf-1d46875b1eba"
33
authors = ["Krystian Guliński", "Julian Samaroo", "and contributors"]
4-
version = "0.3.2"
4+
version = "0.4.0"
55

66
[deps]
77
Dagger = "d58978e5-989f-55fb-8d15-ea34adc7bf54"
@@ -14,9 +14,9 @@ TableOperations = "ab02a1b2-a7df-11e8-156e-fb1833f50b87"
1414
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
1515

1616
[compat]
17-
Dagger = "0.16.1, 0.17"
17+
Dagger = "0.18"
1818
DataAPI = "1"
19-
DataFrames = "1.4"
19+
DataFrames = "1.4,1.5,1.6"
2020
InvertedIndices = "1"
2121
SentinelArrays = "1"
2222
TableOperations = "1"

src/DTables.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export All,
6969
Cols,
7070
DTable,
7171
DTableColumn,
72+
enable_disk_caching!,
7273
innerjoin,
7374
leftjoin,
7475
ncol,
@@ -83,6 +84,7 @@ export All,
8384
trim!
8485
############################################################################################
8586

87+
include("utilities.jl")
8688
include("table/dtable.jl")
8789
include("table/gdtable.jl")
8890
include("table/tables.jl")

src/utilities.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function enable_disk_caching!(ram_percentage_limit=30, disk_limit_gb=32^2 * 10)
2+
return Dagger.enable_disk_caching!(ram_percentage_limit, disk_limit_gb)
3+
end

0 commit comments

Comments
 (0)