- MOST Web Framework MySQL Adapter for connecting with MySQL Database Server
Install the data adapter:
npm install most-data-mysql
Append the adapter type in application configuration (app.json#adapterTypes):
...
"adapterTypes": [
...
{ "name":"MySQL Data Adapter", "invariantName": "mysql", "type":"most-data-mysql" }
...
]
Register an adapter in application configuration (app.json#adapters):
adapters: [
...
{ "name":"development", "invariantName":"mysql", "default":true,
"options": {
"host":"localhost",
"port":3306,
"user":"user",
"password":"password",
"database":"test"
}
}
...
]
- MOST Web Framework MSSQL Adapter for connecting with Microsoft SQL Database Server
Install the data adapter:
npm install most-data-mssql
Append the adapter type in application configuration (app.json#adapterTypes):
...
"adapterTypes": [
...
{ "name":"MSSQL Data Adapter", "invariantName": "mssql", "type":"most-data-mssql" }
...
]
Register an adapter in application configuration (app.json#adapters):
adapters: [
...
{ "name":"development", "invariantName":"mssql", "default":true,
"options": {
"server":"localhost",
"user":"user",
"password":"password",
"database":"test"
}
}
...
]
- MOST Web Framework PostgreSQL Adapter for connecting with PostgreSQL Database Server
Install the data adapter:
npm install most-data-pg
Append the adapter type in application configuration (app.json#adapterTypes):
...
"adapterTypes": [
...
{ "name":"PostgreSQL Data Adapter", "invariantName": "postgres", "type":"most-data-pg" }
...
]
Register an adapter in application configuration (app.json#adapters):
adapters: [
...
{ "name":"development", "invariantName":"postgres", "default":true,
"options": {
"host":"localhost",
"post":5432,
"user":"user",
"password":"password",
"database":"db"
}
}
...
]
- MOST Web Framework Oracle Adapter for connecting with Oracle Database Server
Install the data adapter:
npm install most-data-oracle
Append the adapter type in application configuration (app.json#adapterTypes):
...
"adapterTypes": [
...
{ "name":"Oracle Data Adapter", "invariantName": "oracle", "type":"most-data-oracle" }
...
]
Register an adapter in application configuration (app.json#adapters):
adapters: [
...
{ "name":"development", "invariantName":"oracle", "default":true,
"options": {
"host":"localhost",
"port":1521,
"user":"user",
"password":"password",
"service":"orcl",
"schema":"PUBLIC"
}
}
...
]
- MOST Web Framework SQLite Adapter for connecting with Sqlite Databases
Install the data adapter:
npm install most-data-sqlite
Append the adapter type in application configuration (app.json#adapterTypes):
...
"adapterTypes": [
...
{ "name":"SQLite Data Adapter", "invariantName": "sqlite", "type":"most-data-sqlite" }
...
]
Register an adapter in application configuration (app.json#adapters):
adapters: [
...
{ "name":"development", "invariantName":"sqlite", "default":true,
"options": {
database:"db/local.db"
}
}
...
]
- MOST Web Framework Data Pool Adapter for connection pooling
Install the data adapter:
npm install most-data-pool
Append the adapter type in application configuration (app.json#adapterTypes):
...
"adapterTypes": [
...
{ "name":"Pool Data Adapter", "invariantName": "pool", "type":"most-data-pool" }
{ "name":"...", "invariantName": "...", "type":"..." }
...
]
Register an adapter in application configuration (app.json#adapters):
adapters: [
{ "name":"development", "invariantName":"...", "default":false,
"options": {
"server":"localhost",
"user":"user",
"password":"password",
"database":"test"
}
},
{ "name":"development_with_pool", "invariantName":"pool", "default":true,
"options": {
"adapter":"development"
}
}
...
]