{"id":15107572,"url":"https://github.com/sebastianconcept/mapless","last_synced_at":"2025-09-19T01:33:11.904Z","repository":{"id":15153250,"uuid":"17880773","full_name":"sebastianconcept/Mapless","owner":"sebastianconcept","description":"Schema-less persistence for Smalltalk with support for multiple backends.","archived":false,"fork":false,"pushed_at":"2024-03-05T16:39:13.000Z","size":47260,"stargazers_count":35,"open_issues_count":17,"forks_count":11,"subscribers_count":10,"default_branch":"develop","last_synced_at":"2025-01-01T09:50:28.420Z","etag":null,"topics":["mongodb","persistence","pharo","postgresql","redis","smalltalk","sqlite","unqlite"],"latest_commit_sha":null,"homepage":"http://sebastianconcept.github.io/Mapless/","language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianconcept.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-03-18T20:25:21.000Z","updated_at":"2024-04-03T07:52:08.000Z","dependencies_parsed_at":"2023-02-17T13:45:55.540Z","dependency_job_id":"3ca7d875-2b93-4c70-bf1b-f7b7c0764d9f","html_url":"https://github.com/sebastianconcept/Mapless","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2FMapless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2FMapless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2FMapless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2FMapless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianconcept","download_url":"https://codeload.github.com/sebastianconcept/Mapless/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233544101,"owners_count":18691923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mongodb","persistence","pharo","postgresql","redis","smalltalk","sqlite","unqlite"],"created_at":"2024-09-25T21:25:35.380Z","updated_at":"2025-09-19T01:33:06.366Z","avatar_url":"https://github.com/sebastianconcept.png","language":"Smalltalk","readme":"![Mapless](./hero.jpg)\n\n# Mapless\n\nSchema-less persistence for Smalltalk with support for multiple backends.\n\n[![Release](https://img.shields.io/github/v/tag/sebastianconcept/Mapless?label=release)](https://github.com/sebastianconcept/Mapless/releases)\n[![Unit Tests](https://github.com/sebastianconcept/Mapless/actions/workflows/build.yml/badge.svg)](https://github.com/sebastianconcept/Mapless/actions/workflows/build.yml)\n\n[![Coverage Status](https://codecov.io/github/sebastianconcept/Mapless/coverage.svg?branch=main)](https://codecov.io/gh/sebastianconcept/Mapless/branch/master)\n![Tests](https://img.shields.io/badge/tests-193-green)\n\n\n[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23383932.svg)](https://pharo.org/download)\n[![Pharo 10](https://img.shields.io/badge/Pharo-10-%23383932.svg)](https://pharo.org/download)\n\n[![License](https://img.shields.io/badge/license-MIT-green)](./LICENSE.txt)\n[![Forks](https://img.shields.io/github/forks/sebastianconcept/Mapless?style=sociall)]()\n[![Social](https://img.shields.io/github/stars/sebastianconcept/Mapless?style=social)]()\n\n[![](https://img.shields.io/badge/Sqlite-044a64?logo=sqlite\u0026logoColor=white)](https://www.sqlite.org/index.html)\n[![](https://img.shields.io/badge/PostgreSQL-336791?logo=postgresql\u0026logoColor=white)](https://www.postgresql.org/)\n[![](https://img.shields.io/badge/UnQlite-003127?logo=unqlite\u0026logoColor=white)](https://unqlite.org/)\n[![](https://img.shields.io/badge/MongoDB-001e2b?logo=mongodb\u0026logoColor=13aa52)](https://www.mongodb.com/)\n[![](https://img.shields.io/badge/RAM-001B57)](https://en.wikipedia.org/wiki/Random-access_memory)\n[![](https://img.shields.io/badge/redis-CC0000.svg?logo=redis\u0026logoColor=white)](https://redis.io/)\n\n### [Mapless GitHub Page](https://sebastianconcept.github.io/Mapless/)\n\n- [How to Install](#how-to-install)\n- [Guides](https://sebastianconcept.github.io/Mapless#guides)\n\n---\n\n## Description\n\nMapless is a schema-less persistence framework supporting multiple backends and offering a user-friendly API. Querying Mapless objects involves a common family of methods, and there's no need to declare accessors and mutators. See [examples below](#examples).\n\nDesigned to eliminate the need for schema maintenance, Mapless avoids any Object-Relational Mapping requirements.\n\nMapless achieves a balance between maximum data survivability and robust architectural flexibility without imposing a heavy burden in terms of adoption and maintenance. A sweet spot for development and production.\n\n## Features\n\n- Intuitive API for frictionless persistence.\n- No need to create and maintain schemas.\n- Composable.\n- JSON friendly.\n- No need to create accessors and mutators.\n- Multiple backends to choose from.\n- Enables smooth data migration/interoperation among backends.\n- [Scalable observer-pattern](https://sebastianconcept.github.io/Mapless/guides/2024/01/28/observer-pattern.html) functionality across images (requires Redis).\n\n## Supported backends\n\n1. SQLite\n2. PostgreSQL\n3. Redis\n4. MongoDB\n5. Memory\n6. UnQLite (frozen support)\n\n## Examples\nTry Mapless by [installing it in a supported Pharo image](#how-to-install) and the following snippets:\n\n```Smalltalk\n\"Instantiates an SQLite Mapless repository.\"\nrepository := MaplessSQLiteRepository\n    for: 'TryMapless'\n    on: 'path/string/to/your/sqlite.db'.\n```\n\n```Smalltalk\n\"Custom class to model your data\"\nMapless subclass: #Person\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'YourApp-Mapless'\n\n\"Guarantees the database has a Person table (this is idempotent).\"\nrepository ensureTableFor: Person.\n\n\"Instantiates a Mapless object.\"\nphilosopher := Person new\n\tfirstName: 'Aristotle';\n\tyourself.\n\n\"Saves it.\"\nrepository save: philosopher.\n```\n\n```Smalltalk\n\"Loads one by known ID.\"\nidentified := repository findOne: Person atId: philosopher id.\n```\n\n```Smalltalk\n\"Loads all instances of that class that were stored in that database.\"\nallOrEmpty := repository findAll: Person.\n```\n\n```Smalltalk\n\"Query to load all the instances that match the condition.\"\nsomeOrEmpty := repository findAll: Person where: [ :each | \n  each firstName = 'Aristotle' ].\n```\n\n```Smalltalk\n\"Conditionally loading the first matching instance.\"\noneOrNil := repository findOne: Person where: [ :each | \n  each firstName = 'Aristotle' ].\n```\n\n```Smalltalk\n\"Create a Person Mapless model\"\nphilosopher := Person new\n\tfirstName: 'Aristotle';\n\tsave.\n\n\"Set it as the person for a new User Mapless model\"\nphilosopherUser := User new\n\tperson: philosopher;\n\tsave.  \n\n\"Query for that user by ID and get its person instance\"\naristotle := (User findId: philosopherUser id) person.\n```\n## How to install\n\nTo start with Mapless, download Pharo, open a Pharo Playground and evaluate:\n\n```smalltalk\n\"Load latest version of Mapless with its default backends (Memory and SQLite)\"\nMetacello new\n  baseline: 'Mapless';\n  repository: 'github://sebastianconcept/Mapless:latest/src';\n  load.\n```\n```smalltalk\n\"Load latest version of Mapless specifying which backends explicitely\"\nMetacello new\n  baseline: 'Mapless';\n  repository: 'github://sebastianconcept/Mapless:latest/src';\n  load: #('Core' 'SQLite' 'Postgres' 'Mongo' 'Redis' 'Memory') \n```\n\n## Include as dependency\n\nTo include Mapless as a dependency from `BaselineOf` or `ConfigurationOf` add it with:\n\n```smalltalk\nspec\n  baseline: 'Mapless'\n    with: [ spec\n    repository: 'github://sebastianconcept/Mapless:latest/src';\n    load: #('Core' 'SQLite' 'Postgres' 'Mongo' 'Redis' 'Memory') ]\n```\n## Project Ambition\n\nTo deliver a high-performance solution that preserves arbitrary application state (data) with a focus on flexibility, availability, and capacity. It aims to strategically aid in scaling without causing vendor lock-in, across various persistence backends, and by neutralizing the costs associated with object-mapping impedance mismatch.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianconcept%2Fmapless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianconcept%2Fmapless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianconcept%2Fmapless/lists"}