Popularity
3.6
Stable
Activity
0.0
Stable
4
2
3
Monthly Downloads: 22
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags:
Database
mbtiles alternatives and similar packages
Based on the "Database" category.
Alternatively, view mbtiles alternatives based on common mentions on social networks and blogs.
-
erd
Translates a plain text description of a relational database schema to a graphical entity-relationship diagram. -
HDBC-session
This repository includes a joined query generator based on typefull relational algebra, and mapping tools between SQL values list and Haskell record type. -
groundhog
This library maps datatypes to a relational model, in a way similar to what ORM libraries do in OOP. See the tutorial https://www.schoolofhaskell.com/user/lykahb/groundhog for introduction -
mysql-simple
A mid-level client library for the MySQL database, intended to be fast and easy to use. -
dbmigrations
DISCONTINUED. A library for the creation, management, and installation of schema updates for relational databases. -
ampersand
This repository contains the source code of the Ampersand compiler. For developing in VS-code, it contains a devcontainer. It contains a Dockerfile for generating a docker image. A commit on the main branch sets of the build street, which creates a new image in the ampersand repository in docker hub. -
hsparql
hsparql includes a DSL to easily create queries, as well as methods to submit those queries to a SPARQL server, returning the results as simple Haskell data structures.
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of mbtiles or a related project?
README
mbtiles
Haskell library for interfacing with MapBox MBTiles files.
Documentation available on Hackage.
Functionality
- Getting tiles by zoom, x, and y.
- Writing new tiles by zoom, x, and y.
- Updating existing tiles by zoom, x, and y.
- Accessing metadata from the mbtiles file.
Basic Usage
Reading, writing, and updating tiles:
{-# LANGUAGE OverloadedStrings #-}
import qualified Data.ByteString.Lazy as BL
import Database.Mbtiles
main = do
let myData = "myTileData" :: BL.ByteString
let tile = Tile (Z 0, X 0, Y 0)
runMbtiles "my/path/to/file.mbtiles" $ do
maybeTileData <- getTile tile
case maybeTileData of
Nothing -> writeTile tile myData
(Just d) -> updateTile tile $ BL.init d
Getting metadata:
import Control.Monad.IO.Class
import Database.Mbtiles
main = do
runMbtiles "my/path/to/file.mbtiles" $ do
liftIO . print =<< getName
liftIO . print =<< getType
liftIO . print =<< getFormat
Future Work
- Improve database error handling.
- Investigate usage as a performant tile server.
- Add tests.