
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@spikedpunch/stacks-postgres
Advanced tools
PostgresSQL plugin for `stacks`. The underlying implementation uses the [Kysely](https://github.com/koskimas/kysely) Postgres query builder. This was chosen to provide as much forward functionality as possible.
PostgresSQL plugin for stacks
. The underlying implementation uses the Kysely Postgres query builder. This was chosen to provide as much forward functionality as possible.
let model = stack.create.model('model', {
name: ''
})
model.symbols.push({
name: 'postgres:
})
Name | Required | Type | Description |
---|---|---|---|
postgres:tablename | optional | string | The name of the Postgres Table. Defaultrs to the Model's name. |
postgres:custom | optional | function(builder: CreateTableBuilder<any, any>): Promise<CreateTableBuilder<any, any>> | Allows you to fully customize the table creation process. This is a lambda function that provides you with the CreateTableBuilder Object in the underlying library. |
Name | Required | Type | Description |
---|---|---|---|
postgres:datatype | optional | string | The Postgres Data Type, as specified here. If not provided the plugin will assign a default based on its type. See the Default Type Mapping table below. |
postgres:columnname | optional | string | The name of the column for this Member |
postgres:customcolumn | optional | function(builder: CreateTableBuilder<any, any>): Promise<CreateTableBuilder<any, any>> | A custom column definition builder. This exposes the underlying builder to configure the column any way you need. |
Examples
Default Type Mapping
JS Type | Postgres Type | Notes |
---|---|---|
string | text | |
number | integer | |
boolean | boolean | |
array | [] | Also supports List of Lists, ie int[][] |
Object Ref | table or composite type | Will use the Type's Table nme or Composite name |
TODO: Fill out
name: 'stacks:postgres',
version: this.version || 'version-not-set',
store: {
config: this.config,
db: this.context.db,
tables: Array.from(this.context.tableMap.values())
}
id
column using btree.FAQs
PostgresSQL plugin for `stacks`. The underlying implementation uses the [Kysely](https://github.com/koskimas/kysely) Postgres query builder. This was chosen to provide as much forward functionality as possible.
The npm package @spikedpunch/stacks-postgres receives a total of 0 weekly downloads. As such, @spikedpunch/stacks-postgres popularity was classified as not popular.
We found that @spikedpunch/stacks-postgres demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.