Swift Package Index

MySQLStORM

https://github.com/SwiftORM/MySQL-StORM.git

MySQL StORM Module


Compatibility

  • 3.3.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 3.3.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

MySQL-StORM

MySQL-StORM is the MySQL module for StORM - a Swift ORM.

It aims to be easy to use, but flexible. Drawing on previous experiences, whether they be good, bad or ugly, of other ORM's, I have tried to build a system that allows you write great code without worrying about the details of how to interact with the database.

Other database wrappers will be available shortly. They will all use the StORM base, and provide as much consistency between datasources as possible.

StORM is built on top of Perfect - the most mature of the Server Side Swift platforms.

What does it do?

  • Abstracts the database layer from your code.
  • Provides a way of adding save, delete, find to your Swift classes
  • Gives you access to more powerful select, insert, update, delete, and raw SQL querying.
  • Maps result sets to your classes

What does it not do?

Right now there are a few things missing, but the basics are there.

On the "TODO" list are:

  • complete joins
  • complete having
  • complete group by
  • upsert
  • documentation
  • complete test coverage