Packages

Library that simpilfies working with mbtiles files to use it you need to specify the mbtiles path in your config config :mbtiles, :mbtiles_path, 'priv/test.mbtiles'

Current section

Files

Jump to
mbtiles lib mbtiles mbtiles_runner.ex
Raw

lib/mbtiles/mbtiles_runner.ex

defmodule Mbtiles.MbtilesRunner do
use AyeSQL.Runner
alias AyeSQL.Query
@impl true
def run(%Query{statement: stmt, arguments: args}, options) do
repo = options[:repo] || raise ArgumentError, "No repo defined"
Ecto.Adapters.SQL.query(repo, stmt, args)
end
end