GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fibjs/fib-orm

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

575 Commits
575 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
Dockerfile
Dockerfile
 
 
docs
docs
 
 
src
src
 
 
test
test
 
 
tpls/starter
tpls/starter
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
History.md
History.md
 
 
License
License
 
 
License_orig
License_orig
 
 
README.md
README.md
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

fib-orm

ORM for fibjs — a unified ORM package supporting SQLite, MySQL, and PostgreSQL.

Install

npm install fib-orm

Quick Start

const ORM = require('fib-orm');

const db = ORM.connectSync('sqlite:test.db');

const User = db.define('user', {
  name: String,
  age: Number
});

db.syncSync();

User.createSync({ name: 'Alice', age: 30 });
const users = User.findSync();
console.log(users);

db.closeSync();

Build

npm run build

Test

# SQLite
ORM_PROTOCOL=sqlite fibjs test

# MySQL
ORM_PROTOCOL=mysql fibjs test

# PostgreSQL
ORM_PROTOCOL=postgres fibjs test

License

MIT

About

fxjs-modules.github.io/orm/

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.