@synthql/backend
TypeScript icon, indicating that this package has built-in type declarations

0.109.4 • Public • Published

@synthql/backend

The SynthQL backend.

import { QueryEngine } from '@synthql/backend';

// Initialize the query engine
const queryEngine = new QueryEngine({
    url: 'postgresql://user:password@localhost:5432/dbname',
});

// Write your query
const query = from('users')
    .columns('id', 'first_name')
    .filter({ id: { in: [1, 2, 3] } })
    .all();

// Execute the query
const result = await queryEngine.executeAndWait(query);

Links

Readme

Keywords

none

Package Sidebar

Install

npm i @synthql/backend

Weekly Downloads

407

Version

0.109.4

License

MIT

Unpacked Size

391 kB

Total Files

184

Last publish

Collaborators

  • fernandohur