as-services/libs/postgres-types/index.js
devthejo d5febb45c8
Some checks failed
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Failing after 1m25s
/ deploy (push) Has been skipped
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Failing after 1m34s
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 2m9s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Failing after 1m42s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Failing after 1m18s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Failing after 1m22s
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 2m3s
chore(init): available sources
2025-04-13 10:34:01 +02:00

21 lines
789 B
JavaScript

module.exports = () => {
return {
// geography: {
// // The pg_types oid to pass to the db along with the serialized value.
// to: 19211, // SELECT oid FROM pg_type WHERE typname = 'geography';
// // An array of pg_types oids to handle when parsing values coming from the db.
// from: [19211],
// // Function that transform values before sending them to the db.
// serialize: ({ latitude, longitude }) => {
// return `ST_GeomFromGeoJSON(${JSON.stringify({
// type: "Point",
// coordinates: [longitude, latitude],
// })})`
// },
// // Function that transforms values coming from the db.
// // parse: ([x, y, width, height]) => {
// // x, y, width, height
// // },
// },
}
}