Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

The oydadb package provides a simple and efficient way to interact with PostgreSQL databases from your Flutter applications. It encapsulates all the necessary database operations in the OYDAInterface class, making it easier to perform CRUD operations.

License

Notifications You must be signed in to change notification settings

OYDA-Interface/oydadb_native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OYDA Interface

The OYDA Interface is a comprehensive solution designed to enable independent collaborative development. The first step towards this goal is the introduction of the oydadb package, a powerful tool that simplifies interactions with PostgreSQL databases in Flutter applications. It encapsulates all necessary database operations within the OYDAInterface class, making it easier to perform CRUD operations.

Getting Started

First, add the oydadb package to your pubspec.yaml file:

dependencies:
  oydadb: ^1.0.0

Then, run flutter pub get to fetch the package.

Usage

Import the package in your Dart file:

import 'package:oydadb/oydadb.dart';

Create an instance of the OYDAInterface class:

final oydaInterface = OYDAInterface();

Set up the database connection:

await oydaInterface.setOydaBase(devKey, oydabaseName, host, port, username, password, useSSL);

Please replace the placeholders with your actual values and add more details as necessary.

Now, you can use the oydaInterface instance to interact with your PostgreSQL database. For example, to create a table:

const tableName = 'test_table';
final columns = {
  'id': 'SERIAL PRIMARY KEY',
  'name': 'VARCHAR(255)',
  'age': 'INTEGER',
};
await oydaInterface.createTable(tableName, columns);

This first version of the OYDA Interface, featuring the oydadb package, is a significant step towards making database operations in Flutter applications more straightforward and efficient, and enabling independent collaborative development.

About

The oydadb package provides a simple and efficient way to interact with PostgreSQL databases from your Flutter applications. It encapsulates all the necessary database operations in the OYDAInterface class, making it easier to perform CRUD operations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages