loxia 0.0.1-dev.6 copy "loxia: ^0.0.1-dev.6" to clipboard
loxia: ^0.0.1-dev.6 copied to clipboard

Loxia is a Dart ORM library that aims to be fully-featured, easy-to-use, and flexible to manage entities and relations in your server-side applications.

Loxia #

Loxia is a Dart ORM library that aims to be fully-featured, easy-to-use, and flexible to manage entities and relations in your server-side applications.

This library is still in development and is not ready for production use. Use it at your own risk.

Installation #

dart pub add loxia

Usage #

import 'package:loxia/loxia.dart';

Future<void> main() async {
  	DataSource db = DataSource(
		SqliteDataSourceOptions(
			database: 'test.db',
			entities: [User.entity, Todo.entity],
			migrations: []
		)
	);

	await db.init();
	final repository = db.getRepository<Todo>();

	final newTodo = Todo(
		title: 'Test',
		description: 'Test description',
	);

	await repository.insert(Todo.entity.to(newTodo));

	final todos = await repository.find();

	print(todos);

	await db.close();
}
0
likes
100
pub points
40%
popularity

Publisher

verified publisherserinus.app

Loxia is a Dart ORM library that aims to be fully-featured, easy-to-use, and flexible to manage entities and relations in your server-side applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

loxia_annotations, postgres, sqflite_common, sqflite_common_ffi

More

Packages that depend on loxia