import Festinate from 'festinate';
let options = {
username: 'letMeIn',
password: 'SuperSecr3t',
server: 'host.hosted.com',
database: 'pandora',
// optional
domain: '',
encrypt: true // azure
};
let connection = new Festinate(options);
let person = {
name: {
value: "Schrödinger's cat",
type: 'varchar'
},
age: {
value: 9,
type: 'number'
},
deceased: {
value: '?',
type: 'nvarchar'
}
};
connection
.executeSproc('create_person', person)
.then((rows) => {
/*
rows = [{ name: "Schrödinger's cat", age: 9, deceased: '?'}]
*/
})
.catch((err) => {
console.error(err);
});
connection
.executeSproc('get_people')
.then((rows) => {
// if successful [{ name: '' ... }]
})
.catch((err) => {
});
-
Notifications
You must be signed in to change notification settings - Fork 1
Repository pattern over SQL
License
TylerGarlick/festinate
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Repository pattern over SQL
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published