Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/supabase-community/postgrest-swift

Swift client for PostgREST
https://github.com/supabase-community/postgrest-swift

postgrest supabase swift

Last synced: 3 months ago
JSON representation

Swift client for PostgREST

Awesome Lists containing this project

README

        

# Postgrest Swift

> [!WARNING]
> This repository is deprecated and it was moved to the [monorepo](https://github.com/supabase-community/supabase-swift).
> Repository will remain live to support old versions of the library, but any new updates **MUST** be done on the monorepo.

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fsupabase-community%2Fpostgrest-swift%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/supabase-community/postgrest-swift)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fsupabase-community%2Fpostgrest-swift%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/supabase-community/postgrest-swift)

## Installation

Swift client for [PostgREST](https://postgrest.org). The goal of this library is to make an "ORM-like" restful interface.

### Swift Package Manager

Add `postgrest-swift` as a dependency to your `Package.swift` file. For more information, please see the [Swift Package Manager documentation](https://github.com/apple/swift-package-manager/tree/master/Documentation).

```swift
.package(url: "https://github.com/supabase/postgrest-swift", from: "1.0.2")
```

### Supabase

You can also install the [ `supabase-swift`](https://github.com/supabase/supabase-swift) package to use the entire supabase library.

## Usage
Check integration tests for usage examples: [IntegrationTests.swift](/Tests/PostgRESTIntegrationTests/IntegrationTests.swift)

## Contributing

- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes and merge

## License

This repo is liscenced under MIT.