Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bsutton/conduit-orm
Standalone ORM for the dart language supporting multiple database implementations.
https://github.com/bsutton/conduit-orm
Last synced: about 1 month ago
JSON representation
Standalone ORM for the dart language supporting multiple database implementations.
- Host: GitHub
- URL: https://github.com/bsutton/conduit-orm
- Owner: bsutton
- License: bsd-2-clause
- Created: 2021-03-30T18:44:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-30T19:56:04.000Z (over 3 years ago)
- Last Synced: 2024-05-02T00:58:52.005Z (7 months ago)
- Language: Dart
- Size: 482 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## Added support for MySQL database (2020/4/25)
1. example:
``` shell
aqueduct db upgrade --connect mysql://username:password@host:port/databaseName
```or setting `database.yaml`:
``` yaml
schema: postgres|mysql
host: host
port: port
username: username
password: password
databaseName: databaseName
```2. `MySqlPersistentStore`:
``` dart
final MySqlPersistentStore persistentStore = MySqlPersistentStore(
_config.database.username,
_config.database.password,
_config.database.host,
_config.database.port,
_config.database.databaseName);context = ManagedContext(dataModel, persistentStore);
/// ......
final query = Query(context,values: user)
..where((o) => o.username).equalTo(user.username);final res = await query.delete();
/// ......
```
3. Support setting field size``` dart
class _User extends ResourceOwnerTableDefinition {
@Column(size: 11)
String mobile;@override
@Column(unique: true, indexed: true, size: 20)
String username;
}```
![Aqueduct](https://s3.amazonaws.com/aqueduct-collateral/aqueduct.png)